functiongpu.bind()returnfalse,"This is static bound gpu"end
functiongpu.getScreen()return"n/a"end
functiongpu.setBackground(color,isPaletteIndex)
checkArg(1,color,"number")
checkArg(2,isPaletteIndex,"boolean","nil")
@ -219,6 +218,12 @@ function textgpu.start()
returntrue
end
localscreenAddr
functiongpu.getScreen()
returnscreenAddr
end
write("\x1b[?25l")--Disable cursor
localw,h=gpu.getResolution()
prepareBuffers(w,h)
@ -226,7 +231,7 @@ function textgpu.start()
gpu.setBackground(0x000000)
modules.component.api.register(nil,"gpu",gpu)
modules.component.api.register(nil,"screen",{getKeyboards=function()return{"TODO:SetThisUuid"}end})--verry dummy screen, TODO: make it better, kbd uuid also in epoll.c
screenAddr=modules.component.api.register(nil,"screen",{getKeyboards=function()return{"TODO:SetThisUuid"}end})--verry dummy screen, TODO: make it better, kbd uuid also in epoll.c