~ubuntu-branches/ubuntu/utopic/splitvt/utopic

« back to all changes in this revision

Viewing changes to splitvt.h

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2001-10-05 20:09:25 UTC
  • Revision ID: james.westby@ubuntu.com-20011005200925-1crvu3veaaofavdb
Tags: upstream-1.6.5
ImportĀ upstreamĀ versionĀ 1.6.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* Miscellaneous defines and variables for the main splitvt module */
 
3
 
 
4
/* Returns true if 'ch' is a whitespace character */
 
5
#define WHITESPACE(ch)  ((ch == ' ') || (ch == '\t') || (ch == '\n'))
 
6
 
 
7
#define toctrl(X)       (X-'@')         /* uppercase-to-control macro */
 
8
#define unctrl(X)       (X+'@')         /* control-to-uppercase macro */
 
9
 
 
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 */
 
13
 
 
14
/* The command prompt shown by vt_prompt() */
 
15
#define PROMPT  "splitvt command: "
 
16
 
 
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())
 
20
 
 
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? */
 
24
 
 
25
/* The command to run in each window */
 
26
#define MAX_ARGS 0xff
 
27
extern char *upper_args[MAX_ARGS+1], *lower_args[MAX_ARGS+1];
 
28
 
 
29
/* The name of the startup file to parse */
 
30
extern char *startupfile;
 
31
 
 
32
/* The number of lines requested for the upper window (from vt100.c) */
 
33
extern int UU_lines;
 
34
 
 
35
/* Functions exported from splitvt.c */
 
36
extern void reset_bar();