diff --git a/modules/drivers/tty.lua b/modules/drivers/tty.lua index 71539f1..3cfa4be 100644 --- a/modules/drivers/tty.lua +++ b/modules/drivers/tty.lua @@ -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 diff --git a/modules/drivers/vt52.lua b/modules/drivers/vt52.lua index e729303..2ac5409 100644 --- a/modules/drivers/vt52.lua +++ b/modules/drivers/vt52.lua @@ -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