#include <X11/keysym.h>
#include <X11/Xutil.h>
-#define TNAME "st-256color"
-
/* Arbitrary sizes */
#define ESC_TITLE_SIZ 256
#define ESC_BUF_SIZ 256
char s[ESC_BUF_SIZ];
} Key;
-#include "config.h"
-
/* Drawing Context */
typedef struct {
unsigned long col[256];
GC gc;
} DC;
+#include "config.h"
+
static void die(const char *errstr, ...);
static void draw(int);
static void execsh(void);
static void xclear(int, int, int, int);
static void xcursor(int);
static void xinit(void);
+static void xloadcols(void);
static void expose(XEvent *);
static char* kmap(KeySym);
}
void
-tloadcols(void) {
+xloadcols(void) {
int i, r, g, b;
XColor color;
Colormap cmap = DefaultColormap(xw.dis, xw.scr);
xw.ch = dc.font->ascent + dc.font->descent;
/* colors */
- tloadcols();
+ xloadcols();
term.c.attr.fg = DefaultFG;
term.c.attr.bg = DefaultBG;