mirror of
https://github.com/kepler155c/opus
synced 2025-05-15 13:54:10 +00:00
transition to kernel
This commit is contained in:
parent
fd1d10a656
commit
7db1db2957
@ -1,6 +1,8 @@
|
|||||||
_G.requireInjector()
|
_G.requireInjector()
|
||||||
|
|
||||||
|
print('require event')
|
||||||
local Event = require('event')
|
local Event = require('event')
|
||||||
|
print('require util')
|
||||||
local Util = require('util')
|
local Util = require('util')
|
||||||
|
|
||||||
local device = _G.device
|
local device = _G.device
|
||||||
@ -9,6 +11,7 @@ local network = _G.network
|
|||||||
local os = _G.os
|
local os = _G.os
|
||||||
local printError = _G.printError
|
local printError = _G.printError
|
||||||
|
|
||||||
|
print('check wireless_modem')
|
||||||
if not device.wireless_modem then
|
if not device.wireless_modem then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -217,10 +217,6 @@ kernel.hook('multishell_redraw', function()
|
|||||||
parentTerm.setCursorPos(1, 1)
|
parentTerm.setCursorPos(1, 1)
|
||||||
parentTerm.clearLine()
|
parentTerm.clearLine()
|
||||||
|
|
||||||
local function compareTab(a, b)
|
|
||||||
return a.uid < b.uid
|
|
||||||
end
|
|
||||||
|
|
||||||
local currentTab = kernel.routines[1]
|
local currentTab = kernel.routines[1]
|
||||||
|
|
||||||
for _,tab in pairs(kernel.routines) do
|
for _,tab in pairs(kernel.routines) do
|
||||||
@ -244,6 +240,10 @@ tab.title = tab.env._APP_TITLE or tab.title
|
|||||||
tab.width = tab.width - 1
|
tab.width = tab.width - 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function compareTab(a, b)
|
||||||
|
return b.hidden and -1 or a.uid < b.uid
|
||||||
|
end
|
||||||
|
|
||||||
local tabX = 0
|
local tabX = 0
|
||||||
for _,tab in Util.spairs(kernel.routines, compareTab) do
|
for _,tab in Util.spairs(kernel.routines, compareTab) do
|
||||||
if tab.width > 0 then
|
if tab.width > 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user