It's not documented anywhere, but you're meant to use term.current for window parenting, and using term is an error... yay...

This commit is contained in:
osmarks 2018-07-26 18:18:17 +01:00
parent 108ca15230
commit 897af4fa5b
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ end
-- Also displays a nice informational UI
local function serve(fn, node_type)
local w, h = term.getSize()
local titlebar = window.create(term, 1, 1, w, 1)
local main_screen = window.create(term, 1, 2, w, h - 1)
local titlebar = window.create(term.current(), 1, 1, w, 1)
local main_screen = window.create(term.current(), 1, 2, w, h - 1)
init_screen(titlebar, colors.lightgray, colors.black)
titlebar.write("Wyvern " .. node_type)