X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcommands.h;h=5f12b23ff9efcd9b3c99e4583a877238a3f55a68;hb=4eb74b26380dfde31c86c685f0589e0c653aebf0;hp=26e8706389db1d0c5bcd95806ae753e46ffbb5da;hpb=0efa17a9955266acd1f51023bd6e87d62f111b87;p=citadel.git diff --git a/citadel/commands.h b/citadel/commands.h index 26e870638..5f12b23ff 100644 --- a/citadel/commands.h +++ b/citadel/commands.h @@ -1,6 +1,21 @@ /* * $Id$ * + * Copyright (c) 1987-2009 by the citadel.org team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* @@ -24,22 +39,21 @@ #define BRIGHT_WHITE 15 #define COLOR_PUSH 16 /* Save current color */ #define COLOR_POP 17 /* Restore saved color */ - -#define MAXURLS 50 /* Max embedded URL's per message */ +#define ORIGINAL_PAIR -1 /* Default terminal colors */ /* * declarations */ void load_command_set(void); -void sttybbs(int cmd); +void stty_ctdl(int cmd); void newprompt(char *prompt, char *str, int len); void strprompt(char *prompt, char *str, int len); int boolprompt(char *prompt, int prev_val); int intprompt(char *prompt, int ival, int imin, int imax); -int fmout(int width, FILE *fp, char pagin, int height, int starting_lp, - char subst); -int getcmd(char *argbuf); -void display_help(char *name); +int fmout(int width, FILE *fpin, char *text, FILE *fpout, char pagin, + int height, int starting_lp, int subst); +int getcmd(CtdlIPC *ipc, char *argbuf); +void display_help(CtdlIPC *ipc, char *name); void color(int colornum); void cls(int colornum); void send_ansi_detect(void); @@ -53,14 +67,19 @@ void keyopt(char *); char keymenu(char *menuprompt, char *menustring); void async_ka_start(void); void async_ka_end(void); -int checkpagin(int lp, int pagin, int height); +int checkpagin(int lp, unsigned int pagin, unsigned int height); char was_a_key_pressed(void); + +#ifdef __GNUC__ +void pprintf(const char *format, ...) __attribute__((__format__(__printf__,1,2))); +#else void pprintf(const char *format, ...); +#endif -extern int num_urls; -extern char urls[MAXURLS][256]; -extern char rc_url_cmd[256]; +extern char rc_url_cmd[SIZ]; +extern char rc_open_cmd[SIZ]; +extern char rc_gotmail_cmd[SIZ]; extern int lines_printed; extern int rc_remember_passwords;