diff options
| -rw-r--r-- | st.h | 20 |
1 files changed, 5 insertions, 15 deletions
| @@ -1,5 +1,4 @@ | |||
| 1 | /* See LICENSE for licence details. */ | 1 | /* See LICENSE for licence details. */ |
| 2 | |||
| 3 | #define _XOPEN_SOURCE | 2 | #define _XOPEN_SOURCE |
| 4 | #include <ctype.h> | 3 | #include <ctype.h> |
| 5 | #include <fcntl.h> | 4 | #include <fcntl.h> |
| @@ -8,11 +7,11 @@ | |||
| 8 | #include <stdio.h> | 7 | #include <stdio.h> |
| 9 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 10 | #include <string.h> | 9 | #include <string.h> |
| 11 | #include <unistd.h> | ||
| 12 | #include <sys/types.h> | ||
| 13 | #include <sys/stat.h> | ||
| 14 | #include <sys/select.h> | ||
| 15 | #include <sys/ioctl.h> | 10 | #include <sys/ioctl.h> |
| 11 | #include <sys/select.h> | ||
| 12 | #include <sys/stat.h> | ||
| 13 | #include <sys/types.h> | ||
| 14 | #include <unistd.h> | ||
| 16 | #include <X11/Xlib.h> | 15 | #include <X11/Xlib.h> |
| 17 | #include <X11/keysym.h> | 16 | #include <X11/keysym.h> |
| 18 | #include <X11/Xutil.h> | 17 | #include <X11/Xutil.h> |
| @@ -28,7 +27,7 @@ | |||
| 28 | #define SHELL "/bin/bash" | 27 | #define SHELL "/bin/bash" |
| 29 | #define TAB 8 | 28 | #define TAB 8 |
| 30 | 29 | ||
| 31 | #define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" | 30 | #define FONT "fixed" |
| 32 | #define BORDER 3 | 31 | #define BORDER 3 |
| 33 | #define LINESPACE 1 /* additional pixel between each line */ | 32 | #define LINESPACE 1 /* additional pixel between each line */ |
| 34 | 33 | ||
| @@ -49,7 +48,6 @@ static char* colorname[] = { | |||
| 49 | "white", | 48 | "white", |
| 50 | }; | 49 | }; |
| 51 | 50 | ||
| 52 | |||
| 53 | /* Arbitrary sizes */ | 51 | /* Arbitrary sizes */ |
| 54 | #define ESCSIZ 256 | 52 | #define ESCSIZ 256 |
| 55 | #define ESCARG 16 | 53 | #define ESCARG 16 |
| @@ -68,14 +66,6 @@ enum { CRset=1 , CRupdate=2 }; /* Character state */ | |||
| 68 | enum { TMwrap=1 , TMinsert=2 }; /* Terminal mode */ | 66 | enum { TMwrap=1 , TMinsert=2 }; /* Terminal mode */ |
| 69 | enum { SCupdate, SCredraw }; /* screen draw mode */ | 67 | enum { SCupdate, SCredraw }; /* screen draw mode */ |
| 70 | 68 | ||
| 71 | #ifdef TRUECOLOR | ||
| 72 | #error Truecolor not implemented yet | ||
| 73 | typedef int Color; | ||
| 74 | #else | ||
| 75 | typedef char Color; | ||
| 76 | #endif | ||
| 77 | |||
| 78 | |||
| 79 | typedef struct { | 69 | typedef struct { |
| 80 | char c; /* character code */ | 70 | char c; /* character code */ |
| 81 | char mode; /* attribute flags */ | 71 | char mode; /* attribute flags */ |
