made the VT52 driver theoretically capable of supporting multiple displays with one GPU. theoretically.

This commit is contained in:
Izaya 2017-09-24 02:19:51 +10:00 committed by Izaya
parent e9227ce08a
commit 76837876d6

View File

@ -1,6 +1,7 @@
function tty(gA,sA,sI,fg,bg)
local gP,cx,cy,bg,fg = component.proxy(gA),1,1,bg or 0x000000, fg or 0xffffff
gP.bind(sA)
gP.cs = sA
local sx, sy = gP.getResolution()
gP.setResolution(sx,sy)
gP.setForeground(fg)
@ -23,6 +24,10 @@ function tty(gA,sA,sI,fg,bg)
gP.setBackground(bG)
end
local function wl(str)
if gP.cs ~= sA then
gP.bind(sA)
gP.cs = sA
end
local cm = 0
for c in str:gmatch(".") do
if cm == 1 then