* Set all version numbers to 7.41 for upcoming beta.
[citadel.git] / citadel / commands.h
blobf0bf2cd2b54e6a6409c1c35de810f02ae613a736
1 /*
2 * $Id$
4 */
6 /*
7 * Colors for color() command
8 */
9 #define DIM_BLACK 0
10 #define DIM_RED 1
11 #define DIM_GREEN 2
12 #define DIM_YELLOW 3
13 #define DIM_BLUE 4
14 #define DIM_MAGENTA 5
15 #define DIM_CYAN 6
16 #define DIM_WHITE 7
17 #define BRIGHT_BLACK 8
18 #define BRIGHT_RED 9
19 #define BRIGHT_GREEN 10
20 #define BRIGHT_YELLOW 11
21 #define BRIGHT_BLUE 12
22 #define BRIGHT_MAGENTA 13
23 #define BRIGHT_CYAN 14
24 #define BRIGHT_WHITE 15
25 #define COLOR_PUSH 16 /* Save current color */
26 #define COLOR_POP 17 /* Restore saved color */
27 #define ORIGINAL_PAIR -1 /* Default terminal colors */
30 * declarations
32 void load_command_set(void);
33 void stty_ctdl(int cmd);
34 void newprompt(char *prompt, char *str, int len);
35 void strprompt(char *prompt, char *str, int len);
36 int boolprompt(char *prompt, int prev_val);
37 int intprompt(char *prompt, int ival, int imin, int imax);
38 int fmout(int width, FILE *fpin, char *text, FILE *fpout, char pagin,
39 int height, int starting_lp, int subst);
40 int getcmd(CtdlIPC *ipc, char *argbuf);
41 void display_help(CtdlIPC *ipc, char *name);
42 void color(int colornum);
43 void cls(int colornum);
44 void send_ansi_detect(void);
45 void look_for_ansi(void);
46 int inkey(void);
47 void set_keepalives(int s);
48 extern int enable_color;
49 int yesno(void);
50 int yesno_d(int d);
51 void keyopt(char *);
52 char keymenu(char *menuprompt, char *menustring);
53 void async_ka_start(void);
54 void async_ka_end(void);
55 int checkpagin(int lp, unsigned int pagin, unsigned int height);
56 char was_a_key_pressed(void);
58 #ifdef __GNUC__
59 void pprintf(const char *format, ...) __attribute__((__format__(__printf__,1,2)));
60 #else
61 void pprintf(const char *format, ...);
62 #endif
66 extern char rc_url_cmd[SIZ];
67 extern char rc_open_cmd[SIZ];
68 extern char rc_gotmail_cmd[SIZ];
69 extern int lines_printed;
70 extern int rc_remember_passwords;