From ea1b618b6df9b27b15260555ec794acf660a6577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 10 Jul 2019 16:05:19 +0200 Subject: [PATCH] vt: implement \ED and \EE '\ED' is just like '\n'; move the cursor down to the next row, or if it's at the bottom, scroll up one row. '\EE' is just like '\n\r' --- vt.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vt.c b/vt.c index 7d856b2c..8314c060 100644 --- a/vt.c +++ b/vt.c @@ -615,10 +615,19 @@ esc_dispatch(struct terminal *term, uint8_t final) break; } + case 'D': + term_linefeed(term); + break; + case 'M': term_reverse_index(term); break; + case 'E': + term_linefeed(term); + term_cursor_left(term, term->cursor.col); + break; + case '0': { /* Configure G0-G3 to use special chars + line drawing */ char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '(';