Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
af29fb2
)
Add another obscure way to set a window title.
author
Christoph Lohmann <
[email protected]
>
Wed, 12 Sep 2012 11:00:39 +0000
(13:00 +0200)
committer
Christoph Lohmann <
[email protected]
>
Wed, 12 Sep 2012 11:00:39 +0000
(13:00 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
15d22ac
..
f3b0b08
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1509,6
+1509,9
@@
strhandle(void) {
break;
}
break;
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 */
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 '_': /* 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;
strreset();
strescseq.type = ascii;
term.esc |= ESC_STR;