aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-12 13:00:39 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-12 13:00:39 +0200
commitc092bce366ce7469e92f59c889b31fa9037976b2 (patch)
treecce2974588e85737a4029af88aef1e9b8c3c5c44 /st.c
parentaf29fb2a5015918a8bb32075ab82b4e59d85910a (diff)
downloadst-c092bce366ce7469e92f59c889b31fa9037976b2.tar.gz
st-c092bce366ce7469e92f59c889b31fa9037976b2.tar.bz2
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 15d22ac..f3b0b08 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;