|
|
@ -20,8 +20,6 @@ |
|
|
|
#include <X11/keysym.h> |
|
|
|
#include <X11/keysym.h> |
|
|
|
#include <X11/Xutil.h> |
|
|
|
#include <X11/Xutil.h> |
|
|
|
|
|
|
|
|
|
|
|
#define TNAME "st-256color" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Arbitrary sizes */ |
|
|
|
/* Arbitrary sizes */ |
|
|
|
#define ESC_TITLE_SIZ 256 |
|
|
|
#define ESC_TITLE_SIZ 256 |
|
|
|
#define ESC_BUF_SIZ 256 |
|
|
|
#define ESC_BUF_SIZ 256 |
|
|
@ -107,8 +105,6 @@ typedef struct { |
|
|
|
char s[ESC_BUF_SIZ]; |
|
|
|
char s[ESC_BUF_SIZ]; |
|
|
|
} Key; |
|
|
|
} Key; |
|
|
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Drawing Context */ |
|
|
|
/* Drawing Context */ |
|
|
|
typedef struct { |
|
|
|
typedef struct { |
|
|
|
unsigned long col[256]; |
|
|
|
unsigned long col[256]; |
|
|
@ -117,6 +113,8 @@ typedef struct { |
|
|
|
GC gc; |
|
|
|
GC gc; |
|
|
|
} DC; |
|
|
|
} DC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
|
|
|
static void die(const char *errstr, ...); |
|
|
|
static void die(const char *errstr, ...); |
|
|
|
static void draw(int); |
|
|
|
static void draw(int); |
|
|
|
static void execsh(void); |
|
|
|
static void execsh(void); |
|
|
|