diff options
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-10-06 19:13:08 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-10-06 19:13:08 +0200 |
commit | 3fce3392ac04283ff1bf00647af943ce47d9bc94 (patch) | |
tree | f24f40d34136fea975fbd6fdb2ea052fd8d4e47e | |
parent | 70aeaf7f2fb26073431b4884098cf561ac0d585b (diff) | |
download | st-3fce3392ac04283ff1bf00647af943ce47d9bc94.tar.gz st-3fce3392ac04283ff1bf00647af943ce47d9bc94.tar.bz2 |
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(-)
-rw-r--r-- | st.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1816,8 +1816,11 @@ tputc(char *c, int len) { return; case '\016': /* XXX: SO */ case '\017': /* XXX: SI */ - case '\032': /* XXX: SUB */ - case '\030': /* XXX: CAN */ + break; + case '\032': /* SUB */ + case '\030': /* CAN */ + csireset(); + return; default: /* case '\005': ENQ (IGNORED) */ /* case '\000': NUL (IGNORED) */ |