mirror of
https://github.com/kepler155c/opus
synced 2025-10-20 18:27:40 +00:00
better startup
This commit is contained in:
@@ -18,7 +18,7 @@ Config.load('multishell', env)
|
||||
UI.TextEntry.defaults.backgroundFocusColor = colors.black
|
||||
|
||||
local systemPage = UI.Page {
|
||||
backgroundColor = colors.blue,
|
||||
backgroundColor = colors.cyan,
|
||||
tabs = UI.Tabs {
|
||||
pathTab = UI.Window {
|
||||
tabTitle = 'Path',
|
||||
@@ -86,8 +86,9 @@ local systemPage = UI.Page {
|
||||
},
|
||||
},
|
||||
grid = UI.ScrollingGrid {
|
||||
y = 4,
|
||||
y = 3,
|
||||
values = {
|
||||
{ name = '', value = '' },
|
||||
{ name = 'CC version', value = Util.getVersion() },
|
||||
{ name = 'Lua version', value = _VERSION },
|
||||
{ name = 'MC version', value = _MC_VERSION or 'unknown' },
|
||||
@@ -96,7 +97,7 @@ local systemPage = UI.Page {
|
||||
{ name = 'Day', value = tostring(os.day()) },
|
||||
},
|
||||
selectable = false,
|
||||
backgroundColor = colors.blue,
|
||||
--backgroundColor = colors.blue,
|
||||
columns = {
|
||||
{ key = 'name', width = 12 },
|
||||
{ key = 'value', width = UI.term.width - 15 },
|
||||
|
@@ -46,11 +46,11 @@ local config = {
|
||||
},
|
||||
color = {
|
||||
focusTextColor = colors.white,
|
||||
focusBackgroundColor = colors.brown,
|
||||
textColor = colors.gray,
|
||||
backgroundColor = colors.brown,
|
||||
focusBackgroundColor = colors.black,
|
||||
textColor = colors.lightGray,
|
||||
backgroundColor = colors.black,
|
||||
tabBarTextColor = colors.lightGray,
|
||||
tabBarBackgroundColor = colors.brown,
|
||||
tabBarBackgroundColor = colors.black,
|
||||
},
|
||||
-- path = '.:/apps:' .. shell.path():sub(3),
|
||||
path = 'usr/apps:sys/apps:' .. shell.path(),
|
||||
@@ -124,7 +124,7 @@ local function draw()
|
||||
end
|
||||
end
|
||||
if currentTab and not currentTab.isOverview then
|
||||
parentTerm.setTextColor(_colors.textColor)
|
||||
parentTerm.setTextColor(_colors.focusTextColor)
|
||||
parentTerm.setBackgroundColor(_colors.backgroundColor)
|
||||
parentTerm.setCursorPos( w, 1 )
|
||||
parentTerm.write('*')
|
||||
@@ -215,7 +215,7 @@ local function launchProcess(tab)
|
||||
if err then
|
||||
printError(tostring(err))
|
||||
end
|
||||
printError('Press enter to exit')
|
||||
printError('Press enter to close')
|
||||
tab.isDead = true
|
||||
while true do
|
||||
local e, code = os.pullEventRaw('key')
|
||||
@@ -484,6 +484,7 @@ local function startup()
|
||||
end
|
||||
|
||||
if hasError then
|
||||
print()
|
||||
error('An autorun program has errored')
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user