mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-29 06:05:35 -05:00
added tab support to the terminal emulator
This commit is contained in:
parent
fab605ff21
commit
eccc80ad16
@ -31,6 +31,8 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function
|
|||||||
cx = 1
|
cx = 1
|
||||||
elseif cc == "\27" then -- escape
|
elseif cc == "\27" then -- escape
|
||||||
mode = "e"
|
mode = "e"
|
||||||
|
elseif cc == "\t" then
|
||||||
|
cx = 8*((cx+9)//8)
|
||||||
elseif string.byte(cc) > 31 and string.byte(cc) < 127 then -- printable, I guess
|
elseif string.byte(cc) > 31 and string.byte(cc) < 127 then -- printable, I guess
|
||||||
gpu.set(cx, cy, cc)
|
gpu.set(cx, cy, cc)
|
||||||
cx = cx + 1
|
cx = cx + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user