mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Never trust terminfo fata morganas. And adding other xterm compatibility.
This commit is contained in:
parent
6696ef8563
commit
91fa81dbac
1 changed files with 2 additions and 5 deletions
7
st.c
7
st.c
|
@ -1467,16 +1467,13 @@ strhandle(void) {
|
||||||
case ']': /* OSC -- Operating System Command */
|
case ']': /* OSC -- Operating System Command */
|
||||||
switch(p[0]) {
|
switch(p[0]) {
|
||||||
case '0':
|
case '0':
|
||||||
|
case '1':
|
||||||
case '2':
|
case '2':
|
||||||
/*
|
/*
|
||||||
* TODO: Handle special chars in string, like umlauts.
|
* TODO: Handle special chars in string, like umlauts.
|
||||||
*/
|
*/
|
||||||
if(p[1] == ';') {
|
if(p[1] == ';') {
|
||||||
if(!strncmp(strescseq.buf, "settitle ", 9)) {
|
XStoreName(xw.dpy, xw.win, strescseq.buf+2);
|
||||||
XStoreName(xw.dpy, xw.win, strescseq.buf+11);
|
|
||||||
} else {
|
|
||||||
XStoreName(xw.dpy, xw.win, strescseq.buf+2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ';':
|
case ';':
|
||||||
|
|
Loading…
Reference in a new issue