tty may be a custom tty stream that didn't care about a cursor

This commit is contained in:
payonel 2018-11-25 19:44:43 -08:00
parent d8346988f9
commit aa963bfd26

View File

@ -79,7 +79,9 @@ function tty.stream:write(value)
return
end
local window = tty.window
local cursor = window.cursor or {sy = 0, tails = {}}
local cursor = window.cursor or {}
cursor.sy = cursor.sy or 0
cursor.tails = cursor.tails or {}
local beeped
local uptime = computer.uptime
local last_sleep = uptime()