X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=b7dfd559ab211369fa866304735910f225ae8170;hb=c084c06b402de4fe995734a2c89cae26ff7c9064;hp=4b7e4ebd1b87e2123029f34737165553b0d72b32;hpb=93901ca4fee8a1ab71cb8b918f3d65404460f9ce;p=st.git diff --git a/st.c b/st.c index 4b7e4eb..b7dfd55 100644 --- a/st.c +++ b/st.c @@ -1203,6 +1203,18 @@ csihandle(void) { DEFAULT(escseq.arg[0], 1); tmoveto(0, term.c.y-escseq.arg[0]); break; + case 'g': /* TBC -- Tabulation clear */ + switch (escseq.arg[0]) { + case 0: /* clear current tab stop */ + term.tabs[term.c.x] = 0; + break; + case 3: /* clear all the tabs */ + memset(term.tabs, 0, term.col * sizeof(*term.tabs)); + break; + default: + goto unknown; + } + break; case 'G': /* CHA -- Move to */ case '`': /* XXX: HPA -- same? */ DEFAULT(escseq.arg[0], 1);