made both tty variants handle multi-line text input lots better

This commit is contained in:
Izaya 2017-07-15 15:06:17 +10:00
parent 74ae2b3523
commit f14f29a00a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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