File: config.h

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (51 lines) | stat: -rw-r--r-- 1,688 bytes parent folder | download | duplicates (2)
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
/* ---------------- config.h -------------- */

#ifndef CONFIG_H
#define CONFIG_H

enum colortypes {
	STD_COLOR,
	SELECT_COLOR,
	FRAME_COLOR,
	HILITE_COLOR
};

enum grounds { FG, BG };

/* ----------- configuration parameters ----------- */
typedef struct config {
    char version[sizeof VERSION];
    char mono;         /* 0=color, 1=mono, 2=reverse mono    */
    BOOL snowy;        /* TRUE = snowy CGA display           */
    BOOL InsertMode;   /* Editor insert mode                 */
    int Tabs;          /* Editor tab stops                   */
    BOOL WordWrap;     /* True to word wrap editor           */
    int read_only;     /* Read Only?                         */
#ifdef INCLUDE_WINDOWOPTIONS
    BOOL Border;       /* True for application window border */
    BOOL Title;        /* True for application window title  */
    BOOL StatusBar;    /* True for appl'n window status bar  */
#endif
    BOOL Texture;      /* True for textured appl window      */
    int ScreenLines;   /* Number of screen lines (25/43/50)  */
    char PrinterPort[5];
    int LinesPage;     /* Lines per printer page             */
    int CharsLine;     /* Characters per printer line        */
    int LeftMargin;    /* Printer margins                    */
    int RightMargin;
    int TopMargin;
    int BottomMargin;
    unsigned char clr[CLASSCOUNT] [4] [2]; /* Colors         */
} CONFIG;

extern CONFIG cfg;
extern unsigned char color[CLASSCOUNT] [4] [2];
extern unsigned char bw[CLASSCOUNT] [4] [2];
extern unsigned char reverse[CLASSCOUNT] [4] [2];

BOOL LoadConfig(void);
void SaveConfig(void);
FILE *OpenConfig(char *);

#endif