line wrapping works now
This commit is contained in:
parent
c347f6daa4
commit
0eb85d39e5
@ -30,7 +30,6 @@ function tty(gA,sA,sI,mx,my)
|
||||
elseif c == "\127" then
|
||||
cx=cx-1
|
||||
if cx<1 then cx=1 end
|
||||
--(" "):rep(2)
|
||||
sb[cy] = sb[cy]:sub(1,cx-1).." "..sb[cy]:sub(cx+2)
|
||||
else
|
||||
sb[cy] = sb[cy] or ""
|
||||
@ -42,6 +41,9 @@ function tty(gA,sA,sI,mx,my)
|
||||
sb[cy] = sb[cy]:sub(1,sx)
|
||||
end
|
||||
cx=cx+unicode.charWidth(c)
|
||||
if cx > sx then
|
||||
cx,cy = 1, cy+1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user