added tabs to the tty
This commit is contained in:
parent
6f94ad19ba
commit
507fe49984
@ -17,6 +17,7 @@ function tty(gA,sA,sI,fg,bg)
|
|||||||
if c == "\n" then cx,cy=1,cy+1
|
if c == "\n" then cx,cy=1,cy+1
|
||||||
elseif c == "\r" then cx=1
|
elseif c == "\r" then cx=1
|
||||||
elseif c == "\f" then cx=1 cy=1 gP.fill(1, 1, sx, sy, " ")
|
elseif c == "\f" then cx=1 cy=1 gP.fill(1, 1, sx, sy, " ")
|
||||||
|
elseif c == "\t" then cx=cx+4-((cx+4)%4)
|
||||||
elseif c == "\127" then cx=cx-1 gP.set(cx,cy," ")
|
elseif c == "\127" then cx=cx-1 gP.set(cx,cy," ")
|
||||||
else gP.set(cx,cy,c) cx=cx+1
|
else gP.set(cx,cy,c) cx=cx+1
|
||||||
end cv()
|
end cv()
|
||||||
|
Loading…
Reference in New Issue
Block a user