X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.h;h=4652a333fb3bbefa1a232cf77d3b8df5f759ce1b;hb=129bcd7586968ed882e41c0df76c5c0c0c414e6d;hp=be39ef412870047ffd79989b1443d1affe0ad1e4;hpb=d58dd3b8bc42ed31232e4145696d7dacb117a31c;p=st.git diff --git a/st.h b/st.h index be39ef4..4652a33 100644 --- a/st.h +++ b/st.h @@ -1,5 +1,4 @@ /* See LICENSE for licence details. */ - #define _XOPEN_SOURCE #include #include @@ -8,11 +7,11 @@ #include #include #include -#include -#include -#include -#include #include +#include +#include +#include +#include #include #include #include @@ -28,7 +27,7 @@ #define SHELL "/bin/bash" #define TAB 8 -#define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" +#define FONT "fixed" #define BORDER 3 #define LINESPACE 1 /* additional pixel between each line */ @@ -49,7 +48,6 @@ static char* colorname[] = { "white", }; - /* Arbitrary sizes */ #define ESCSIZ 256 #define ESCARG 16 @@ -68,13 +66,7 @@ enum { CRset=1 , CRupdate=2 }; /* Character state */ enum { TMwrap=1 , TMinsert=2 }; /* Terminal mode */ enum { SCupdate, SCredraw }; /* screen draw mode */ -#ifdef TRUECOLOR -#error Truecolor not implemented yet typedef int Color; -#else -typedef char Color; -#endif - typedef struct { char c; /* character code */