From eccc80ad1688170328f659edc6e4fcff48204644 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 25 Mar 2020 07:08:17 +1100 Subject: [PATCH] added tab support to the terminal emulator --- module/vt100.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/vt100.lua b/module/vt100.lua index ed18996..b709237 100644 --- a/module/vt100.lua +++ b/module/vt100.lua @@ -31,6 +31,8 @@ function vt100emu(gpu) -- takes GPU component proxy *gpu* and returns a function cx = 1 elseif cc == "\27" then -- escape 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 gpu.set(cx, cy, cc) cx = cx + 1