[hackers] [st] Never trust terminfo fata morganas. And adding other xterm compatibility. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Thu, 30 Aug 2012 07:40:55 +0200 (CEST)

changeset: 254:de705dd3ccdb
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Thu Aug 30 07:38:47 2012 +0200
files: st.c
description:
Never trust terminfo fata morganas. And adding other xterm compatibility.


diff -r fce86b23b2ea -r de705dd3ccdb st.c
--- a/st.c Wed Aug 29 23:14:20 2012 +0200
+++ b/st.c Thu Aug 30 07:38:47 2012 +0200
_AT_@ -1467,16 +1467,13 @@
         case ']': /* OSC -- Operating System Command */
                 switch(p[0]) {
                 case '0':
+ case '1':
                 case '2':
                         /*
                          * TODO: Handle special chars in string, like umlauts.
                          */
                         if(p[1] == ';') {
- if(!strncmp(strescseq.buf, "settitle ", 9)) {
- XStoreName(xw.dpy, xw.win, strescseq.buf+11);
- } else {
- XStoreName(xw.dpy, xw.win, strescseq.buf+2);
- }
+ XStoreName(xw.dpy, xw.win, strescseq.buf+2);
                         }
                         break;
                 case ';':
Received on Thu Aug 30 2012 - 07:40:55 CEST

This archive was generated by hypermail 2.3.0 : Thu Aug 30 2012 - 07:48:07 CEST