made both tty variants handle multi-line text input lots better
This commit is contained in:
parent
74ae2b3523
commit
f14f29a00a
@ -8,7 +8,7 @@ function tty(gA,sA,sI,fg,bg)
|
||||
gP.fill(1,1,sx,sy," ")
|
||||
local function cv()
|
||||
if cx > sx then cx,cy=1,cy+1 end
|
||||
if cx < 1 then cx,cy=1,cy-1 end
|
||||
if cx < 1 then cx,cy=sx,cy-1 end
|
||||
if cy < 1 then cx,cy=1,1 end
|
||||
if cy > sy then gP.copy(1,2,sx,sy-1,0,-1) gP.fill(1,sy,sx,1," ") cx,cy=1,sy end
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ function tty(gA,sA,sI,fg,bg)
|
||||
gP.fill(1,1,sx,sy," ")
|
||||
local function cv()
|
||||
if cx > sx then cx,cy=1,cy+1 end
|
||||
if cx < 1 then cx,cy=1,cy-1 end
|
||||
if cx < 1 then cx,cy=sx,cy-1 end
|
||||
if cy < 1 then cx,cy=1,1 end
|
||||
if cy > sy then gP.copy(1,2,sx,sy-1,0,-1) gP.fill(1,sy,sx,1," ") cx,cy=1,sy end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user