transition to kernel
This commit is contained in:
@@ -10,13 +10,10 @@ local Terminal = require('terminal')
|
|||||||
local Util = require('util')
|
local Util = require('util')
|
||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local multishell = _ENV.multishell
|
|
||||||
local os = _G.os
|
local os = _G.os
|
||||||
local term = _G.term
|
local term = _G.term
|
||||||
local turtle = _G.turtle
|
local turtle = _G.turtle
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Crafter')
|
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
computerFacing = 'north',
|
computerFacing = 'north',
|
||||||
monitor = 'type/monitor',
|
monitor = 'type/monitor',
|
||||||
@@ -6,11 +6,8 @@ local UI = require('ui')
|
|||||||
local Util = require('util')
|
local Util = require('util')
|
||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local multishell = _ENV.multishell
|
|
||||||
local peripheral = _G.peripheral
|
local peripheral = _G.peripheral
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Devices')
|
|
||||||
|
|
||||||
--[[ -- PeripheralsPage -- ]] --
|
--[[ -- PeripheralsPage -- ]] --
|
||||||
local peripheralsPage = UI.Page {
|
local peripheralsPage = UI.Page {
|
||||||
grid = UI.ScrollingGrid {
|
grid = UI.ScrollingGrid {
|
||||||
@@ -7,7 +7,6 @@ local Util = require('util')
|
|||||||
local multishell = _ENV.multishell
|
local multishell = _ENV.multishell
|
||||||
local os = _G.os
|
local os = _G.os
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Events')
|
|
||||||
UI:configure('Events', ...)
|
UI:configure('Events', ...)
|
||||||
|
|
||||||
local page = UI.Page {
|
local page = UI.Page {
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ local colors = _G.colors
|
|||||||
local device = _G.device
|
local device = _G.device
|
||||||
local turtle = _G.turtle
|
local turtle = _G.turtle
|
||||||
|
|
||||||
local multishell = _ENV.multishell
|
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Music')
|
|
||||||
|
|
||||||
if not turtle then
|
if not turtle then
|
||||||
error('This program can only be run on a turtle')
|
error('This program can only be run on a turtle')
|
||||||
end
|
end
|
||||||
@@ -8,14 +8,12 @@ local Util = require('util')
|
|||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local fs = _G.fs
|
local fs = _G.fs
|
||||||
local multishell = _ENV.multishell
|
|
||||||
local os = _G.os
|
local os = _G.os
|
||||||
local shell = _ENV.shell
|
local shell = _ENV.shell
|
||||||
|
|
||||||
local GROUPS_PATH = 'usr/groups'
|
local GROUPS_PATH = 'usr/groups'
|
||||||
local SCRIPTS_PATH = 'usr/etc/scripts'
|
local SCRIPTS_PATH = 'usr/etc/scripts'
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Script')
|
|
||||||
UI:configure('script', ...)
|
UI:configure('script', ...)
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ local os = _G.os
|
|||||||
local shell = _ENV.shell
|
local shell = _ENV.shell
|
||||||
local term = _G.term
|
local term = _G.term
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Turtles')
|
|
||||||
UI.Button.defaults.focusIndicator = ' '
|
UI.Button.defaults.focusIndicator = ' '
|
||||||
UI:configure('Turtles', ...)
|
UI:configure('Turtles', ...)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ local Util = require('util')
|
|||||||
|
|
||||||
local colors = _G.colors
|
local colors = _G.colors
|
||||||
local fs = _G.fs
|
local fs = _G.fs
|
||||||
local multishell = _ENV.multishell
|
|
||||||
|
|
||||||
local BUILDER_DIR = 'usr/builder'
|
local BUILDER_DIR = 'usr/builder'
|
||||||
|
|
||||||
@@ -748,8 +747,6 @@ if not Builder.itemAdapter then
|
|||||||
error('A chest or ME interface must be below turtle')
|
error('A chest or ME interface must be below turtle')
|
||||||
end
|
end
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Builder')
|
|
||||||
|
|
||||||
subDB:load()
|
subDB:load()
|
||||||
|
|
||||||
UI.term:reset()
|
UI.term:reset()
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ local peripheral = _G.peripheral
|
|||||||
local term = _G.term
|
local term = _G.term
|
||||||
local turtle = _G.turtle
|
local turtle = _G.turtle
|
||||||
|
|
||||||
multishell.setTitle(multishell.getCurrent(), 'Resource Manager')
|
if multishell then
|
||||||
|
multishell.setTitle(multishell.getCurrent(), 'Resource Manager')
|
||||||
|
end
|
||||||
|
|
||||||
local config = {
|
local config = {
|
||||||
computerFacing = 'north', -- direction turtle is facing
|
computerFacing = 'north', -- direction turtle is facing
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
forced fstab overwrite
|
|
||||||
Reference in New Issue
Block a user