-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.h
75 lines (58 loc) · 1.04 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef tw_config_h
# define tw_config_h
#ifndef tw_global_h
# include "global.h"
#endif
#ifndef tw_window_h
# include "window.h"
#endif
typedef struct _wincfg WINCFG;
struct _wincfg
{
WINCFG *next;
char progname[80];
char arg[50];
char title[80];
int kind;
int font_id, font_pts;
int col, row, scroll;
int xpos, ypos;
bool iconified;
bool wrap;
bool autoclose;
bool blockcursor;
int vt_mode;
int fg_color;
int bg_color;
int vdi_colors;
unsigned long fg_effects;
unsigned long bg_effects;
int char_tab;
};
/*
* Variablen
*/
extern bool gl_shortcut;
extern bool gl_allogin;
extern bool gl_con_auto,
gl_con_output,
gl_con_log;
extern char gl_con_logname[];
extern WINCFG *gl_wincfg;
/*
* Funktionen
*/
void config_init (void);
void config_term (void);
/* Datei */
bool config_load (void);
void config_save (void);
/* Dialog */
void winconfig_open (void);
void conconfig_open (void);
void update_font (WINDOW *w, int id, int pts);
/*
* Liefert die CFG zu dem Programm.
*/
WINCFG *get_wincfg (const char *prog);
#endif