2
/* Miscellaneous defines and variables for the main splitvt module */
4
/* Returns true if 'ch' is a whitespace character */
5
#define WHITESPACE(ch) ((ch == ' ') || (ch == '\t') || (ch == '\n'))
7
#define toctrl(X) (X-'@') /* uppercase-to-control macro */
8
#define unctrl(X) (X+'@') /* control-to-uppercase macro */
10
#define SWITCH toctrl('W') /* Switch window key */
11
#define QUOTE toctrl('V') /* Quote next character key */
12
#define COMMAND toctrl('O') /* Go into command mode */
14
/* The command prompt shown by vt_prompt() */
15
#define PROMPT "splitvt command: "
17
/* A Macro to set the window in the proper place. */
18
#define CUR_WIN() ((thisfd == topfd) ? UPPER : LOWER)
19
#define SET_WIN() set_win(CUR_WIN())
21
/* Special characters (from splitvt.c) */
22
extern char command_c, switch_c, quote_c;
23
extern int dologin; /* Do the shells run as login shells? */
25
/* The command to run in each window */
27
extern char *upper_args[MAX_ARGS+1], *lower_args[MAX_ARGS+1];
29
/* The name of the startup file to parse */
30
extern char *startupfile;
32
/* The number of lines requested for the upper window (from vt100.c) */
35
/* Functions exported from splitvt.c */
36
extern void reset_bar();