X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=ef0fd17d00eaa7ea057fb7bb88093b4ed937f9a6;hb=0ecfcc39b07bb7cca6a688a743299e6ef990e122;hp=1f585699d4e8b1ea7d1fcc312aae8b8e4b990937;hpb=ccafacb3ff22c85516ff46a88275097936dfe442;p=st.git diff --git a/st.c b/st.c index 1f58569..ef0fd17 100644 --- a/st.c +++ b/st.c @@ -364,21 +364,6 @@ void tsetattr(int *attr, int l) { int i; -#ifdef TRUECOLOR /* ESC [ ? ; ; ; m */ - Color col; - if(escseq.priv && escseq.len == 4) { /* True color extension :) */ - col = (escseq.arg[1]<<16) + (escseq.arg[2]<<8) + escseq.arg[3]; - switch(escseq.arg[0]) { - case 3: /* foreground */ - term.c.attr.fg = col; - break; - case 4: /* background */ - term.c.attr.bg = col; - break; - } - } - else -#endif for(i = 0; i < l; i++) { switch(attr[i]) { case 0: @@ -703,7 +688,7 @@ xinit(void) { xw.dis = XOpenDisplay(NULL); xw.scr = XDefaultScreen(xw.dis); - if(!(xw.dis && xw.scr)) + if(!xw.dis) die("can not open display"); /* font */ @@ -916,7 +901,7 @@ run(void) { int main(int argc, char *argv[]) { if(argc == 2 && !strncmp("-v", argv[1], 3)) - die("st-"", © 2009 st engineers\n"); + die("st-" VERSION ", © 2009 st engineers\n"); else if(argc != 1) die("usage: st [-v]\n"); setlocale(LC_CTYPE, "");