ReactOS 0.4.15-dev-8417-gb6b82fe
tnconfig.cpp File Reference
#include "precomp.h"
#include <locale.h>
#include <io.h>
#include <sys/stat.h>
Include dependency graph for tnconfig.cpp:

Go to the source code of this file.

Classes

struct  ini_variable
 

Enumerations

enum  ini_data_type { INI_STRING , INI_INT , INI_BOOL }
 
enum  {
  INIFILE , KEYFILE , DUMPFILE , DEFAULT_CONFIG ,
  TERM , INPUT_REDIR , OUTPUT_REDIR , STRIP_REDIR ,
  DSTRBKSP , EIGHTBIT_ANSI , VT100_MODE , DISABLE_BREAK ,
  SPEAKER_BEEP , DO_BEEP , PRESERVE_COLORS , WRAP_LINE ,
  LOCK_LINEWRAP , FAST_WRITE , TERM_WIDTH , TERM_HEIGHT ,
  WINDOW_WIDTH , WINDOW_HEIGHT , WIDE_ENABLE , CTRLBREAK_AS_CTRLC ,
  BUFFER_SIZE , SET_TITLE , BLINK_BG , BLINK_FG ,
  UNDERLINE_BG , UNDERLINE_FG , ULBLINK_BG , ULBLINK_FG ,
  NORMAL_BG , NORMAL_FG , SCROLL_BG , SCROLL_FG ,
  STATUS_BG , STATUS_FG , PRINTER_NAME , ENABLE_MOUSE ,
  ESCAPE_KEY , SCROLLBACK_KEY , DIAL_KEY , ALT_ERASE ,
  KEYBOARD_PASTE , SCROLL_MODE , SCROLL_SIZE , SCROLL_ENABLE ,
  SCRIPTNAME , SCRIPT_ENABLE , NETPIPE , IOPIPE ,
  MAX_INI_VARS
}
 
enum  {
  KEYBOARD , TERMINAL , COLORS , MOUSE ,
  PRINTER , SCROLLBACK , SCRIPTING , PIPES ,
  MAX_INI_GROUPS
}
 

Functions

bool find_alias (const char *alias_name)
 

Variables

TConfig ini
 
ini_variable ini_varlist [MAX_INI_VARS]
 
charini_groups [MAX_INI_GROUPS]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
INIFILE 
KEYFILE 
DUMPFILE 
DEFAULT_CONFIG 
TERM 
INPUT_REDIR 
OUTPUT_REDIR 
STRIP_REDIR 
DSTRBKSP 
EIGHTBIT_ANSI 
VT100_MODE 
DISABLE_BREAK 
SPEAKER_BEEP 
DO_BEEP 
PRESERVE_COLORS 
WRAP_LINE 
LOCK_LINEWRAP 
FAST_WRITE 
TERM_WIDTH 
TERM_HEIGHT 
WINDOW_WIDTH 
WINDOW_HEIGHT 
WIDE_ENABLE 
CTRLBREAK_AS_CTRLC 
BUFFER_SIZE 
SET_TITLE 
BLINK_BG 
BLINK_FG 
UNDERLINE_BG 
UNDERLINE_FG 
ULBLINK_BG 
ULBLINK_FG 
NORMAL_BG 
NORMAL_FG 
SCROLL_BG 
SCROLL_FG 
STATUS_BG 
STATUS_FG 
PRINTER_NAME 
ENABLE_MOUSE 
ESCAPE_KEY 
SCROLLBACK_KEY 
DIAL_KEY 
ALT_ERASE 
KEYBOARD_PASTE 
SCROLL_MODE 
SCROLL_SIZE 
SCROLL_ENABLE 
SCRIPTNAME 
SCRIPT_ENABLE 
NETPIPE 
IOPIPE 
MAX_INI_VARS 

Definition at line 128 of file tnconfig.cpp.

128 {
129 INIFILE,
130 KEYFILE,
131 DUMPFILE,
133 TERM,
137 DSTRBKSP,
142 DO_BEEP,
144 WRAP_LINE,
154 SET_TITLE,
155 BLINK_BG,
156 BLINK_FG,
161 NORMAL_BG,
162 NORMAL_FG,
163 SCROLL_BG,
164 SCROLL_FG,
165 STATUS_BG,
166 STATUS_FG,
171 DIAL_KEY,
172 ALT_ERASE,
179 NETPIPE,
180 IOPIPE,
181
182 MAX_INI_VARS // must be last
183};
@ WINDOW_HEIGHT
Definition: tnconfig.cpp:150
@ INPUT_REDIR
Definition: tnconfig.cpp:134
@ KEYBOARD_PASTE
Definition: tnconfig.cpp:173
@ TERM
Definition: tnconfig.cpp:133
@ NETPIPE
Definition: tnconfig.cpp:179
@ BUFFER_SIZE
Definition: tnconfig.cpp:153
@ LOCK_LINEWRAP
Definition: tnconfig.cpp:145
@ SCROLL_MODE
Definition: tnconfig.cpp:174
@ IOPIPE
Definition: tnconfig.cpp:180
@ SCROLL_BG
Definition: tnconfig.cpp:163
@ FAST_WRITE
Definition: tnconfig.cpp:146
@ UNDERLINE_BG
Definition: tnconfig.cpp:157
@ PRINTER_NAME
Definition: tnconfig.cpp:167
@ STRIP_REDIR
Definition: tnconfig.cpp:136
@ NORMAL_FG
Definition: tnconfig.cpp:162
@ SCRIPT_ENABLE
Definition: tnconfig.cpp:178
@ OUTPUT_REDIR
Definition: tnconfig.cpp:135
@ DIAL_KEY
Definition: tnconfig.cpp:171
@ DUMPFILE
Definition: tnconfig.cpp:131
@ DISABLE_BREAK
Definition: tnconfig.cpp:140
@ NORMAL_BG
Definition: tnconfig.cpp:161
@ ULBLINK_BG
Definition: tnconfig.cpp:159
@ SCROLL_ENABLE
Definition: tnconfig.cpp:176
@ KEYFILE
Definition: tnconfig.cpp:130
@ WRAP_LINE
Definition: tnconfig.cpp:144
@ SCROLLBACK_KEY
Definition: tnconfig.cpp:170
@ SET_TITLE
Definition: tnconfig.cpp:154
@ DO_BEEP
Definition: tnconfig.cpp:142
@ TERM_WIDTH
Definition: tnconfig.cpp:147
@ MAX_INI_VARS
Definition: tnconfig.cpp:182
@ DEFAULT_CONFIG
Definition: tnconfig.cpp:132
@ WINDOW_WIDTH
Definition: tnconfig.cpp:149
@ WIDE_ENABLE
Definition: tnconfig.cpp:151
@ ULBLINK_FG
Definition: tnconfig.cpp:160
@ PRESERVE_COLORS
Definition: tnconfig.cpp:143
@ SCRIPTNAME
Definition: tnconfig.cpp:177
@ BLINK_FG
Definition: tnconfig.cpp:156
@ SCROLL_SIZE
Definition: tnconfig.cpp:175
@ BLINK_BG
Definition: tnconfig.cpp:155
@ TERM_HEIGHT
Definition: tnconfig.cpp:148
@ ENABLE_MOUSE
Definition: tnconfig.cpp:168
@ CTRLBREAK_AS_CTRLC
Definition: tnconfig.cpp:152
@ STATUS_FG
Definition: tnconfig.cpp:166
@ EIGHTBIT_ANSI
Definition: tnconfig.cpp:138
@ SCROLL_FG
Definition: tnconfig.cpp:164
@ INIFILE
Definition: tnconfig.cpp:129
@ SPEAKER_BEEP
Definition: tnconfig.cpp:141
@ UNDERLINE_FG
Definition: tnconfig.cpp:158
@ ESCAPE_KEY
Definition: tnconfig.cpp:169
@ DSTRBKSP
Definition: tnconfig.cpp:137
@ STATUS_BG
Definition: tnconfig.cpp:165
@ ALT_ERASE
Definition: tnconfig.cpp:172
@ VT100_MODE
Definition: tnconfig.cpp:139

◆ anonymous enum

anonymous enum
Enumerator
KEYBOARD 
TERMINAL 
COLORS 
MOUSE 
PRINTER 
SCROLLBACK 
SCRIPTING 
PIPES 
MAX_INI_GROUPS 

Definition at line 196 of file tnconfig.cpp.

196 {
197 KEYBOARD,
198 TERMINAL,
199 COLORS,
200 MOUSE,
201 PRINTER,
203 SCRIPTING,
204 PIPES,
205
206 MAX_INI_GROUPS // Must be last
207};
@ SCRIPTING
Definition: tnconfig.cpp:203
@ PIPES
Definition: tnconfig.cpp:204
@ COLORS
Definition: tnconfig.cpp:199
@ MOUSE
Definition: tnconfig.cpp:200
@ TERMINAL
Definition: tnconfig.cpp:198
@ SCROLLBACK
Definition: tnconfig.cpp:202
@ PRINTER
Definition: tnconfig.cpp:201
@ MAX_INI_GROUPS
Definition: tnconfig.cpp:206
@ KEYBOARD
Definition: tnconfig.cpp:197

◆ ini_data_type

Enumerator
INI_STRING 
INI_INT 
INI_BOOL 

Definition at line 122 of file tnconfig.cpp.

122 {
124 INI_INT,
126};
@ INI_BOOL
Definition: tnconfig.cpp:125
@ INI_STRING
Definition: tnconfig.cpp:123
@ INI_INT
Definition: tnconfig.cpp:124

Function Documentation

◆ find_alias()

bool find_alias ( const char alias_name)

Definition at line 379 of file tnconfig.cpp.

379 {
380 return false;
381}

Variable Documentation

◆ ini

◆ ini_groups

◆ ini_varlist