working on api docs
This commit is contained in:
1 parent
56d8fb2016
commit
38d56ced19
43 files changed
+5669
-618
No files matched your search
@@ -147,4 +147,4 @@ for i = 2, #args do
|
||||
end
|
||||
end
|
||||
|
||||
syscall.exit(exitCode)
|
||||
syscall.exit(exitCode)
|
||||
@@ -1,11 +1,16 @@
|
||||
--:Minify:--
|
||||
local success, errorMsg = xpcall(function()
|
||||
|
||||
syscall.open("/dev/input/keyboard1","r") --stdin (Device 0)
|
||||
syscall.open("/dev/tty/1","w") --stdout (Device 1)
|
||||
syscall.open("/dev/null","w") --stderr (device 2)
|
||||
|
||||
local fs = require("fs")
|
||||
|
||||
local fds=syscall.getOpenFds()
|
||||
syscall.log(table.serialize(fds))
|
||||
if not fds[0] or not fds[1] then
|
||||
syscall.log("opening fds")
|
||||
syscall.open("/dev/input/keyboard1", "r")
|
||||
syscall.open("/dev/tty/1", "w")
|
||||
end
|
||||
|
||||
local gfx = syscall.devctl(1,"gfx")
|
||||
|
||||
syscall.devctl(1,"clear")
|
||||
|
||||
Reference in new issue
Block a user