mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-12 16:57:32 -04:00
tty needs to load full when loading term library due to meta-metatabling
This commit is contained in:
parent
e684e588ef
commit
ed99999119
@ -6,7 +6,10 @@ local process = require("process")
|
||||
local kb = require("keyboard")
|
||||
local keys = kb.keys
|
||||
|
||||
local term = setmetatable({internal={}}, {__index=tty})
|
||||
-- tty is bisected into a delay loaded library
|
||||
-- term indexing will fail to use full_tty unless tty is fully loaded
|
||||
-- accessing tty.full_tty [a nonexistent field] will cause that full load
|
||||
local term = setmetatable({internal={},tty.full_tty}, {__index=tty})
|
||||
|
||||
function term.internal.window()
|
||||
return process.info().data.window
|
||||
|
Loading…
x
Reference in New Issue
Block a user