mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-21 19:44:21 -05:00
Compare commits
2 Commits
39e9b1765d
...
91d9ce33c8
Author | SHA1 | Date | |
---|---|---|---|
|
91d9ce33c8 | ||
|
0935d15864 |
@ -148,7 +148,6 @@ function vtansi.vtemu(gpu,bn) -- table number -- function -- takes GPU component
|
|||||||
cx, cy = sx, sy
|
cx, cy = sx, sy
|
||||||
elseif cc == "n" and tA[1] == 6 then
|
elseif cc == "n" and tA[1] == 6 then
|
||||||
rs = string.format("%s\27[%d;%dR",rs,cx,cy)
|
rs = string.format("%s\27[%d;%dR",rs,cx,cy)
|
||||||
dprint(string.format("reporting %d;%d as current cursor position",cx,cy))
|
|
||||||
elseif cc == "K" and tA[1] == 1 then
|
elseif cc == "K" and tA[1] == 1 then
|
||||||
gpu.fill(1,cy,cx,1," ")
|
gpu.fill(1,cy,cx,1," ")
|
||||||
elseif cc == "K" and tA[1] == 2 then
|
elseif cc == "K" and tA[1] == 2 then
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
--#includepkglib "diskpart" "lib/diskpart.lua" "diskpart"
|
--#includepkglib "diskpart" "lib/diskpart.lua" "diskpart"
|
||||||
--#includepkglib "rtfs" "lib/rtfs.lua" "rtfs"
|
--#includepkglib "rtfs" "lib/fs/rtfs/init.lua" "fs.rtfs"
|
||||||
|
--#includepkglib "rtfs" "lib/fs/rtfs/v1.lua" "fs.rtfs.v1"
|
||||||
do
|
do
|
||||||
local a = computer.getBootAddress()
|
local a = computer.getBootAddress()
|
||||||
if component.type(a) == "drive" or component.type(a) == "tape_drive" then
|
if component.type(a) == "drive" or component.type(a) == "tape_drive" then
|
||||||
@ -7,7 +8,7 @@ do
|
|||||||
for k,v in ipairs(diskpart.getPartitions(a)) do
|
for k,v in ipairs(diskpart.getPartitions(a)) do
|
||||||
if v[2] == "rtfs" and v[1] == computer.address():sub(1,8) .. "-boot" then
|
if v[2] == "rtfs" and v[1] == computer.address():sub(1,8) .. "-boot" then
|
||||||
syslog("Partition with suitable name detected, attempting to mount...")
|
syslog("Partition with suitable name detected, attempting to mount...")
|
||||||
local rtfs = require "rtfs"
|
local rtfs = require "fs.rtfs"
|
||||||
fs.makeDirectory("boot")
|
fs.makeDirectory("boot")
|
||||||
local m = rtfs.mount(diskpart.proxyPartition(a,k))
|
local m = rtfs.mount(diskpart.proxyPartition(a,k))
|
||||||
m.address = string.format("%s/%i/rtfs",a,k)
|
m.address = string.format("%s/%i/rtfs",a,k)
|
||||||
|
Loading…
Reference in New Issue
Block a user