[hackers] [st] Also clears ESC_START on interrupt characters during sequences. || Colona
commit 5e917ab2874de556de12ce43e9a97300c9c722a2
Author: Colona <colona_AT_ycc.fr>
Date: Wed May 7 10:05:27 2014 +0200
Also clears ESC_START on interrupt characters during sequences.
Otherwise, the rest of the input is interpreted as a new escape
sequence.
For the ESC character, ESC_START is re-set in tcontrolcode.
diff --git a/st.c b/st.c
index fe44608..baab589 100644
--- a/st.c
+++ b/st.c
_AT_@ -2446,7 +2446,7 @@ tputc(char *c, int len) {
(ascii == '' || ascii == 030 ||
ascii == 032 || ascii == 033 ||
ISCONTROLC1(unicodep))) {
- term.esc &= ~ESC_STR;
+ term.esc &= ~(ESC_START|ESC_STR);
term.esc |= ESC_STR_END;
} else if(strescseq.len + len < sizeof(strescseq.buf) - 1) {
memmove(&strescseq.buf[strescseq.len], c, len);
Received on Fri May 09 2014 - 08:27:02 CEST
This archive was generated by hypermail 2.3.0
: Fri May 09 2014 - 08:36:07 CEST