common.h - ledit - Text editor (WIP) | |
git clone git://lumidify.org/ledit.git (fast, but not encrypted) | |
git clone https://lumidify.org/ledit.git (encrypted, but very slow) | |
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/… | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
common.h (345B) | |
--- | |
1 #ifndef _COMMON_H_ | |
2 #define _COMMON_H_ | |
3 | |
4 #include <X11/Xlib.h> | |
5 | |
6 typedef struct { | |
7 size_t line1; | |
8 size_t byte1; | |
9 size_t line2; | |
10 size_t byte2; | |
11 } ledit_range; | |
12 | |
13 typedef enum { | |
14 NORMAL = 1, | |
15 INSERT = 2, | |
16 VISUAL = 4 | |
17 } ledit_mode; | |
18 | |
19 typedef struct { | |
20 Display *dpy; | |
21 Visual *vis; | |
22 Colormap cm; | |
23 int screen; | |
24 int depth; | |
25 int redraw; | |
26 } ledit_common; | |
27 | |
28 #endif |