diff options
| -rw-r--r-- | terminal.h | 1 | ||||
| -rw-r--r-- | vt.c | 10 |
2 files changed, 11 insertions, 0 deletions
@@ -102,6 +102,7 @@ struct vt { int left; } utf8; struct attributes attrs; + struct attributes saved_attrs; bool dim; }; @@ -567,6 +567,16 @@ esc_dispatch(struct terminal *term, uint8_t final) #endif switch (final) { + case '7': + term->saved_cursor = term->cursor; + term->vt.saved_attrs = term->vt.attrs; + break; + + case '8': + term->cursor = term->saved_cursor; + term->vt.attrs = term->vt.saved_attrs; + break; + case 'B': { /* Configure G0-G3 to use ASCII */ char param = term->vt.params.idx > 0 ? term->vt.params.v[0].value : '('; |
