aboutsummaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2009-05-14 00:27:37 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2009-05-14 00:27:37 +0200
commitabe6f3b0e4a76ff80315cf6e958549e8295737d6 (patch)
tree53041554480a81836d6140acb89814089a13481b /st.h
parent86fa756033e9072a4b114a50896baff36b804ce4 (diff)
downloadst-patched-abe6f3b0e4a76ff80315cf6e958549e8295737d6.tar.bz2
st-patched-abe6f3b0e4a76ff80315cf6e958549e8295737d6.tar.xz
st-patched-abe6f3b0e4a76ff80315cf6e958549e8295737d6.zip
removed the truecolor stuff
Diffstat (limited to 'st.h')
-rw-r--r--st.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/st.h b/st.h
index be39ef4..87db5c2 100644
--- a/st.h
+++ b/st.h
@@ -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 */
68enum { TMwrap=1 , TMinsert=2 }; /* Terminal mode */ 66enum { TMwrap=1 , TMinsert=2 }; /* Terminal mode */
69enum { SCupdate, SCredraw }; /* screen draw mode */ 67enum { SCupdate, SCredraw }; /* screen draw mode */
70 68
71#ifdef TRUECOLOR
72#error Truecolor not implemented yet
73typedef int Color;
74#else
75typedef char Color;
76#endif
77
78
79typedef struct { 69typedef struct {
80 char c; /* character code */ 70 char c; /* character code */
81 char mode; /* attribute flags */ 71 char mode; /* attribute flags */