aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-27 19:28:44 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-27 19:28:44 +0200
commit5e5c3b8cf3bb4e3a5b7562c0d5b72219760a3fb5 (patch)
tree18019f68e7461abc047fd6a51744755f4368a98c
parentbcbf5156bee158d3737170a9feda860852149881 (diff)
downloadst-5e5c3b8cf3bb4e3a5b7562c0d5b72219760a3fb5.tar.gz
st-5e5c3b8cf3bb4e3a5b7562c0d5b72219760a3fb5.tar.bz2
Vt escape sequences allow escape sequences in escape sequences and escape
sequences, so we have to support escape sequences in escape sequences that escape sequences in escape sequences – setting a title won't notify you anymore.
-rw-r--r--st.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.c b/st.c
index 2767d54..bb80321 100644
--- a/st.c
+++ b/st.c
@@ -1685,6 +1685,9 @@ tputc(char *c, int len) {
tnewline(IS_SET(MODE_CRLF));
return;
case '\a':
+ if(term.esc & ESC_STR)
+ break;
+
if(!(xw.state & WIN_FOCUSED))
xseturgency(1);
return;