st
simple terminal
git clone https://9o.is/git/st.git
commit 86812d5e4eb9bb161165034ad27faf1fd4415542 parent db6ddf45ed0a435431b7c761da99d89081665019 Author: Colona <colona@ycc.fr> Date: Wed, 7 May 2014 10:05:27 +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. Diffstat:
| M | st.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c @@ -2446,7 +2446,7 @@ tputc(char *c, int len) { (ascii == '\a' || 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);