fuck me i forgot a semicolon (return)
This commit is contained in:
@@ -234,7 +234,7 @@ end
|
|||||||
kernel.devfs.data.tty={}
|
kernel.devfs.data.tty={}
|
||||||
local ctrl,alt = false, false
|
local ctrl,alt = false, false
|
||||||
|
|
||||||
local function s(bool)
|
local function serializeBool(bool)
|
||||||
if bool then
|
if bool then
|
||||||
return "T"
|
return "T"
|
||||||
else
|
else
|
||||||
@@ -290,7 +290,7 @@ local function newtty(obj, id, ev)
|
|||||||
return icolors[obj.getBackgroundColor()]
|
return icolors[obj.getBackgroundColor()]
|
||||||
end,
|
end,
|
||||||
gctrl=function()
|
gctrl=function()
|
||||||
return s(ctrl)..";"..s(alt)
|
return serializeBool(ctrl)..";"..serializeBool(alt)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
if mode=="rw" then
|
if mode=="rw" then
|
||||||
|
|||||||
@@ -593,7 +593,7 @@ end
|
|||||||
function vfs.devctl(fd, method, ...)
|
function vfs.devctl(fd, method, ...)
|
||||||
if not kernel.currentTask.fd[fd] then error("EBADF") end
|
if not kernel.currentTask.fd[fd] then error("EBADF") end
|
||||||
if not kernel.currentTask.fd[fd].handle[method] then error("EINVAL") end
|
if not kernel.currentTask.fd[fd].handle[method] then error("EINVAL") end
|
||||||
kernel.currentTask.fd[fd].handle[method](...)
|
return kernel.currentTask.fd[fd].handle[method](...)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Export syscalls
|
-- Export syscalls
|
||||||
|
|||||||
Reference in New Issue
Block a user