aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2012-10-06 19:13:08 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2012-10-06 19:13:08 +0200
commit3fce3392ac04283ff1bf00647af943ce47d9bc94 (patch)
treef24f40d34136fea975fbd6fdb2ea052fd8d4e47e
parent70aeaf7f2fb26073431b4884098cf561ac0d585b (diff)
downloadst-patched-3fce3392ac04283ff1bf00647af943ce47d9bc94.tar.bz2
st-patched-3fce3392ac04283ff1bf00647af943ce47d9bc94.tar.xz
st-patched-3fce3392ac04283ff1bf00647af943ce47d9bc94.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) {
1816 return; 1816 return;
1817 case '\016': /* XXX: SO */ 1817 case '\016': /* XXX: SO */
1818 case '\017': /* XXX: SI */ 1818 case '\017': /* XXX: SI */
1819 case '\032': /* XXX: SUB */ 1819 break;
1820 case '\030': /* XXX: CAN */ 1820 case '\032': /* SUB */
1821 case '\030': /* CAN */
1822 csireset();
1823 return;
1821 default: 1824 default:
1822 /* case '\005': ENQ (IGNORED) */ 1825 /* case '\005': ENQ (IGNORED) */
1823 /* case '\000': NUL (IGNORED) */ 1826 /* case '\000': NUL (IGNORED) */