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
parent e2b315e5b3
commit 337e9d7c9f
1 changed files with 5 additions and 0 deletions

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