forked from Hyperion/HyperionOS
28 lines
591 B
Plaintext
28 lines
591 B
Plaintext
local kernel=...
|
|
function print(...)
|
|
coroutine.yield()
|
|
local args={...}
|
|
local output=""
|
|
for i=1,#args do
|
|
output=output..tostring(args[i]).."\t"
|
|
end
|
|
output=output:sub(1,-2)
|
|
kernel.tty.print(output)
|
|
end
|
|
|
|
function printf(fmt, ...)
|
|
coroutine.yield()
|
|
local output=string.format(fmt,...)
|
|
kernel.tty.print(output)
|
|
end
|
|
|
|
function printInline(...)
|
|
coroutine.yield()
|
|
local args={...}
|
|
local output=""
|
|
for i=1,#args do
|
|
output=output..tostring(args[i]).."\t"
|
|
end
|
|
output=output:sub(1,-2)
|
|
kernel.tty.printInline(output)
|
|
end |