mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Add SUB and CAN control codes
These control codes reset any escape sequence already initialised. --- st.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
This commit is contained in:
parent
ac8f05c45a
commit
fbfa1f83eb
1 changed files with 5 additions and 2 deletions
7
st.c
7
st.c
|
@ -1816,8 +1816,11 @@ tputc(char *c, int len) {
|
||||||
return;
|
return;
|
||||||
case '\016': /* XXX: SO */
|
case '\016': /* XXX: SO */
|
||||||
case '\017': /* XXX: SI */
|
case '\017': /* XXX: SI */
|
||||||
case '\032': /* XXX: SUB */
|
break;
|
||||||
case '\030': /* XXX: CAN */
|
case '\032': /* SUB */
|
||||||
|
case '\030': /* CAN */
|
||||||
|
csireset();
|
||||||
|
return;
|
||||||
default:
|
default:
|
||||||
/* case '\005': ENQ (IGNORED) */
|
/* case '\005': ENQ (IGNORED) */
|
||||||
/* case '\000': NUL (IGNORED) */
|
/* case '\000': NUL (IGNORED) */
|
||||||
|
|
Loading…
Reference in a new issue