aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2012-09-12 13:00:39 +0200
committerChristoph Lohmann2012-09-12 13:00:39 +0200
commitcf14c6db1b36998a42c06d8196854cae62bea249 (patch)
tree6cdb86f4f6f616e8e252deaa243fba742bbb9cb5 /st.c
parent2c347f9661b7d6b2147f76d95207e7f083231917 (diff)
downloadaur-cf14c6db1b36998a42c06d8196854cae62bea249.tar.gz
Add another obscure way to set a window title.
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/st.c b/st.c
index 15d22aca403d..f3b0b080b04d 100644
--- a/st.c
+++ b/st.c
@@ -1509,6 +1509,9 @@ strhandle(void) {
break;
}
break;
+ case 'k': /* old title set compatibility */
+ XStoreName(xw.dpy, xw.win, strescseq.buf);
+ break;
case 'P': /* DSC -- Device Control String */
case '_': /* APC -- Application Program Command */
case '^': /* PM -- Privacy Message */
@@ -1624,6 +1627,7 @@ tputc(char *c) {
case '_': /* APC -- Application Program Command */
case '^': /* PM -- Privacy Message */
case ']': /* OSC -- Operating System Command */
+ case 'k': /* old title set compatibility */
strreset();
strescseq.type = ascii;
term.esc |= ESC_STR;