aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-06-08 20:09:40 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-06-08 20:09:40 +0000
commita2c9c56f1962ce02e71582c06f389e53d1869e90 (patch)
treeedccb2370b00eda003aa7a0f10bc1ff2df786e5c /terminal.h
parentvt: add support for LS2 and LS3 locking shifts (diff)
vt: fix SS2/SS3 escape sequences to act correctly as single shifts
These sequences are supposed to affect the next printable ASCII character and then reset to the previous character set, but before this commit they were behaving like locking shifts.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 1721a4c1..a54185e2 100644
--- a/terminal.h
+++ b/terminal.h
@@ -192,6 +192,7 @@ enum charset { CHARSET_ASCII, CHARSET_GRAPHIC };
struct charsets {
int selected;
+ int saved;
enum charset set[4]; /* G0-G3 */
};
@@ -605,6 +606,7 @@ bool term_shutdown(struct terminal *term);
int term_destroy(struct terminal *term);
void term_update_ascii_printer(struct terminal *term);
+void term_set_single_shift_ascii_printer(struct terminal *term, int selected);
void term_reset(struct terminal *term, bool hard);
bool term_to_slave(struct terminal *term, const void *data, size_t len);