aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-17 10:36:24 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-17 10:36:24 +0000
commitf4be84871f9493e87f08ed73a4f276c7fd69d45a (patch)
treef1a019f068b658678147a48b08c981c89c915265
parentcsi: implement 'CNL' - Cursor Next Line (diff)
csi: implement 'CPL' - Cursor Previous Line
-rw-r--r--csi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index e630d363..c3a7573c 100644
--- a/csi.c
+++ b/csi.c
@@ -364,6 +364,12 @@ csi_dispatch(struct terminal *term, uint8_t final)
term_cursor_left(term, term->cursor.point.col);
break;
+ case 'F':
+ /* CPL - Cursor Previous Line */
+ term_cursor_up(term, vt_param_get(term, 0, 1));
+ term_cursor_left(term, term->cursor.point.col);
+ break;
+
case 'g': {
int param = vt_param_get(term, 0, 0);
switch (param) {