summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero2012-10-06 19:13:08 +0200
committerRoberto E. Vargas Caballero2012-10-06 19:13:08 +0200
commitfbfa1f83eb501e885d1077e95739a7d7cab2397f (patch)
treef24f40d34136fea975fbd6fdb2ea052fd8d4e47e
parentac8f05c45a65788523af7223b1a94e8baf890b6e (diff)
downloadst-fbfa1f83eb501e885d1077e95739a7d7cab2397f.tar.gz
st-fbfa1f83eb501e885d1077e95739a7d7cab2397f.tar.xz
st-fbfa1f83eb501e885d1077e95739a7d7cab2397f.zip
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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/st.c b/st.c
index aa5f085..8e25d23 100644
--- a/st.c
+++ b/st.c
@@ -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) */