diff options
| author | Christoph Lohmann <20h@r-36.net> | 2012-09-12 13:00:39 +0200 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2012-09-12 13:00:39 +0200 |
| commit | c092bce366ce7469e92f59c889b31fa9037976b2 (patch) | |
| tree | cce2974588e85737a4029af88aef1e9b8c3c5c44 | |
| parent | af29fb2a5015918a8bb32075ab82b4e59d85910a (diff) | |
| download | st-c092bce366ce7469e92f59c889b31fa9037976b2.tar.gz st-c092bce366ce7469e92f59c889b31fa9037976b2.zip | |
Add another obscure way to set a window title.
| -rw-r--r-- | st.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1509,6 +1509,9 @@ strhandle(void) { | |||
| 1509 | break; | 1509 | break; |
| 1510 | } | 1510 | } |
| 1511 | break; | 1511 | break; |
| 1512 | case 'k': /* old title set compatibility */ | ||
| 1513 | XStoreName(xw.dpy, xw.win, strescseq.buf); | ||
| 1514 | break; | ||
| 1512 | case 'P': /* DSC -- Device Control String */ | 1515 | case 'P': /* DSC -- Device Control String */ |
| 1513 | case '_': /* APC -- Application Program Command */ | 1516 | case '_': /* APC -- Application Program Command */ |
| 1514 | case '^': /* PM -- Privacy Message */ | 1517 | case '^': /* PM -- Privacy Message */ |
| @@ -1624,6 +1627,7 @@ tputc(char *c) { | |||
| 1624 | case '_': /* APC -- Application Program Command */ | 1627 | case '_': /* APC -- Application Program Command */ |
| 1625 | case '^': /* PM -- Privacy Message */ | 1628 | case '^': /* PM -- Privacy Message */ |
| 1626 | case ']': /* OSC -- Operating System Command */ | 1629 | case ']': /* OSC -- Operating System Command */ |
| 1630 | case 'k': /* old title set compatibility */ | ||
| 1627 | strreset(); | 1631 | strreset(); |
| 1628 | strescseq.type = ascii; | 1632 | strescseq.type = ascii; |
| 1629 | term.esc |= ESC_STR; | 1633 | term.esc |= ESC_STR; |
