aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-05 12:56:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-05 12:56:52 +0000
commitf635f4807819b05b3f37858701c25bc0166a827d (patch)
treed69573faee8d09d7d346fe13fecf3af4a4571e58
parentvt: always use hex (not octal) (diff)
vt: implement VT - Vertical Tab
Despite its name, it always moves down exactly one line.
-rw-r--r--vt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vt.c b/vt.c
index ae5509f6..0c7f37c4 100644
--- a/vt.c
+++ b/vt.c
@@ -898,6 +898,11 @@ action(struct terminal *term, enum action _action, uint8_t c)
break;
}
+ case '\x0b':
+ /* VT - vertical tab */
+ term_cursor_down(term, 1);
+ break;
+
case '\x0e':
/* SO - shift out */
term->selected_charset = 1; /* G1 */