some redraw fixes
[k8sterm.git] / src / globals.c
blob9f7c5cb1f5320d550f8105baed53ea13ace77d99
1 /* Globals */
2 static uint16_t *unimap = NULL; // 0 or 65535 items; 127: special; high bit set: use alt(gfx) mode; 0: empty
4 static char **opt_cmd = NULL;
5 static char *opt_title = NULL;
6 static char *opt_embed = NULL;
7 static char *opt_class = NULL;
8 static char *opt_term = NULL;
9 static char *opt_fontnorm = NULL;
10 static char *opt_fontbold = NULL;
11 static char *opt_fonttab = NULL;
12 static char *opt_shell = NULL;
13 static char *opt_colornames[512];
14 static int opt_term_locked = 0;
15 static int opt_doubleclick_timeout = DOUBLECLICK_TIMEOUT;
16 static int opt_tripleclick_timeout = TRIPLECLICK_TIMEOUT;
17 static int opt_tabsize = TAB;
18 static int defaultFG = DEFAULT_FG;
19 static int defaultBG = DEFAULT_BG;
20 static int defaultCursorFG = 0;
21 static int defaultCursorBG = DEFAULT_CS;
22 static int defaultCursorInactiveFG = 0;
23 static int defaultCursorInactiveBG = DEFAULT_UCS;
24 static int defaultBoldFG = -1;
25 static int defaultUnderlineFG = -1;
26 static int normalTabFG = 258;
27 static int normalTabBG = 257;
28 static int activeTabFG = 258;
29 static int activeTabBG = 0;
30 static int opt_maxhistory = 512;
31 static int opt_ptrblank = 2000; // delay; 0: never
32 static int opt_tabcount = 6;
33 static int opt_tabposition = 0; // 0: bottom; 1: top
34 static int opt_drawtimeout = DRAW_TIMEOUT;
35 static int opt_disabletabs = 0;
36 static int opt_audiblebell = 1;
37 static int opt_urgentbell = 1;
38 static int opt_cursorBlink = 0;
39 static int opt_cursorBlinkInactive = 0;
40 static int opt_drawunderline = 1;
41 static int opt_ignoreclose = 0;
42 static int opt_maxdrawtimeout = 1500;
43 static int opt_swapdrawtimeout = 200;
44 static int opt_fastredraw = 0;
45 static int opt_tabellipsis = 1; // center
46 static int opt_fastupdate = 1;
47 static int ptrBlanked = 0;
48 static K8TTimeMSec ptrLastMove = 0;
49 static int globalBW = 0;
50 static int opt_scrollclear = 2; // default mode: clear to 1st char color
53 static K8Term **term_array = NULL;
54 static int term_count = 0;
55 static int term_array_size = 0;
56 static K8Term *curterm; // current terminal
57 static int termidx; // current terminal index; DON'T RELAY ON IT!
58 static int updateTabBar;
59 static K8TTimeMSec lastDrawTime = 0;
60 static char *lastSelStr = NULL;
61 //static int lastSelLength = 0;
63 static int firstVisibleTab = 0;
65 static int exitcode = 0;
66 static int closeRequestComes = 0;
68 static K8TXDC dc;
69 static K8TXWindow xw;
71 static Atom XA_VT_SELECTION;
72 static Atom XA_CLIPBOARD;
73 static Atom XA_UTF8;
74 static Atom XA_TARGETS;
75 static Atom XA_NETWM_NAME;
76 static Atom XA_WM_DELETE_WINDOW;