1 /* vim:tw=78:ts=8:sw=4:set ft=c: */
3 Copyright (C) 2002-2019 Ben Kibbey <bjk@luxsci.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #ifdef HAVE_SYS_PARAM_H
33 #include <sys/param.h>
36 // See init_color_pairs() in colors.c.
39 CONF_BWHITE
, CONF_BBLACK
, CONF_BSELECTED
, CONF_BCURSOR
, CONF_BGRAPHICS
,
40 CONF_BCOORDS
, CONF_BMOVESW
, CONF_BMOVESB
, CONF_BCOUNT
, CONF_BDWINDOW
,
41 CONF_TWINDOW
, CONF_TTITLE
, CONF_TBORDER
,
42 CONF_SWINDOW
, CONF_STITLE
, CONF_SBORDER
, CONF_SNOTIFY
, CONF_SENGINE
,
43 CONF_HWINDOW
, CONF_HTITLE
, CONF_HBORDER
,
44 CONF_MWINDOW
, CONF_MTITLE
, CONF_MBORDER
, CONF_MPROMPT
,
45 CONF_IWINDOW
, CONF_ITITLE
, CONF_IBORDER
, CONF_IPROMPT
, CONF_MENU
,
46 CONF_MENUS
, CONF_MENUH
, CONF_HISTORY_MENU_LG
, CONF_BCASTLING
,
47 CONF_BENPASSANT
, CONF_BATTACK
, CONF_BPREVMOVE
, CONF_MAX_COLORS
52 short fg
; // Foreground color.
53 short bg
; // Background color.
54 int attrs
; // Attributes for a color terminal.
55 int nattrs
; // Attributes for a non-color terminal.
74 int jumpcount
; // KEY_UP and KEY_DOWN in history mode.
75 int linegraphics
; // Board line graphics.
76 int saveprompt
; // Prompt to save modified games on quit.
77 int deleteprompt
; // Prompt when deleting a game.
78 int clevel
; // Compression level for compressed files.
79 int validmoves
; // Display valid squares a selected piece can move to.
80 struct passwd
*pwd
; // Used throughout (tags/home directory).
81 char *nagfile
; // The pathname to the NAG data file.
82 char *configfile
; // The pathname to the configuration file (default or
83 // from the command line).
84 char *ccfile
; // The pathname to the Country Code data file.
85 char *savedirectory
; // Directory where saved games are stored.
86 char *datadir
; // ~/.cboard
87 char *engine_cmd
; // Alternate chess engine command.
88 int engine_protocol
; // XBoard protocol: 1 or 2
89 int engine_timeout
; // seconds to wait for the engine to spawn
90 struct color_s color
[CONF_MAX_COLORS
]; // Color configuration.
91 TAG
**tag
; // Custom PGN tags.
92 char *pattern
; // Filename filter in the file browser.
93 wchar_t **einit
; /* Strings to send to the chess engine upon each reset
96 struct config_key_s
**keys
; // Custom commands to send to the engine.
97 int details
; // Board details.
98 int showattacks
; // When board details is enabled.
100 char fmpolyglot
; // first move with polyglot
103 char enginecmdblacktag
;
104 int utf8_pieces
; // For the board only.
106 char *turn_cmd
; // Command to be run when its human turn.
109 extern struct config_s config
;