made it only spawn a tty and keyboard driver when the machine has the hardware

This commit is contained in:
Izaya 2017-08-04 17:46:11 +10:00
parent 219d3a8326
commit 45d0b85887

View File

@ -1,7 +1,9 @@
tty(component.list("gpu")(),component.list("screen")()) if component.list("gpu")() and component.list("screen")() and component.list("keyboard")() then
log(pcall(function() tty(component.list("gpu")(),component.list("screen")())
local ka = component.list("keyboard")() log(pcall(function()
kbd(ka) local ka = component.list("keyboard")()
end)) kbd(ka)
end))
end
luash() luash()
computer.beep() computer.beep()