diff --git a/halyde/apps/help.lua b/halyde/apps/help.lua index 29d67b4..4bcbca6 100644 --- a/halyde/apps/help.lua +++ b/halyde/apps/help.lua @@ -128,7 +128,7 @@ handle:close() --print(require("serialize")(data, "\t")) --- Halyde io doesn't support bold (CSI 1 m) but who cares +-- Halyde terminal doesn't support bold (CSI 1 m) but who cares if data.command then terminal.write("\27[1mUsage: \27[0m\n") diff --git a/halyde/apps/test.lua b/halyde/apps/test.lua deleted file mode 100644 index 3cbbb59..0000000 --- a/halyde/apps/test.lua +++ /dev/null @@ -1,15 +0,0 @@ -for i = 1, 100 do - profiler.start("math_work") - local x = 0 - for j = 1, 200000 do x = x + math.sqrt(j) end - profiler.stop("math_work") - - profiler.start("string_work") - local s = "" - for j = 1, 2000 do s = s .. tostring(j) end - profiler.stop("string_work") - end - -for _, r in ipairs(profiler.results()) do - print(r.label, r.time) -end diff --git a/halyde/kernel/modules/defenv.lua b/halyde/kernel/modules/defenv.lua index be0979b..854f3ef 100644 --- a/halyde/kernel/modules/defenv.lua +++ b/halyde/kernel/modules/defenv.lua @@ -1,6 +1,6 @@ local module = {} -module.dependencies = { "io" } +module.dependencies = { "terminal" } function module.check() return true -- This module should always be loaded diff --git a/halyde/kernel/modules/terminal.lua b/halyde/kernel/modules/terminal.lua index bf5f1d3..28c6918 100644 --- a/halyde/kernel/modules/terminal.lua +++ b/halyde/kernel/modules/terminal.lua @@ -18,7 +18,7 @@ function module.init() local component = require("component") local gpu = component.gpu - _G._PUBLIC.io = {} + _G._PUBLIC.terminal = {} local readHistory = {} function _PUBLIC.terminal.getHistory(id) @@ -811,7 +811,7 @@ function module.init() end function module.exit() - _G._PUBLIC.io = nil + _G._PUBLIC.terminal = nil end return module diff --git a/webinstall.lua b/webinstall.lua index aa3b204..9a565c2 100644 --- a/webinstall.lua +++ b/webinstall.lua @@ -1,4 +1,4 @@ -local io = require("terminal") +local io = require("io") local component = require("component") if not component.isAvailable("internet") then io.stderr.write("This program requires an internet card to run.")