made the VT52 driver theoretically capable of supporting multiple displays with one GPU. theoretically.
This commit is contained in:
parent
e9227ce08a
commit
76837876d6
@ -1,6 +1,7 @@
|
|||||||
function tty(gA,sA,sI,fg,bg)
|
function tty(gA,sA,sI,fg,bg)
|
||||||
local gP,cx,cy,bg,fg = component.proxy(gA),1,1,bg or 0x000000, fg or 0xffffff
|
local gP,cx,cy,bg,fg = component.proxy(gA),1,1,bg or 0x000000, fg or 0xffffff
|
||||||
gP.bind(sA)
|
gP.bind(sA)
|
||||||
|
gP.cs = sA
|
||||||
local sx, sy = gP.getResolution()
|
local sx, sy = gP.getResolution()
|
||||||
gP.setResolution(sx,sy)
|
gP.setResolution(sx,sy)
|
||||||
gP.setForeground(fg)
|
gP.setForeground(fg)
|
||||||
@ -23,6 +24,10 @@ function tty(gA,sA,sI,fg,bg)
|
|||||||
gP.setBackground(bG)
|
gP.setBackground(bG)
|
||||||
end
|
end
|
||||||
local function wl(str)
|
local function wl(str)
|
||||||
|
if gP.cs ~= sA then
|
||||||
|
gP.bind(sA)
|
||||||
|
gP.cs = sA
|
||||||
|
end
|
||||||
local cm = 0
|
local cm = 0
|
||||||
for c in str:gmatch(".") do
|
for c in str:gmatch(".") do
|
||||||
if cm == 1 then
|
if cm == 1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user