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