diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-05-12 15:08:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-05-12 15:08:37 +0000 |
commit | 1c5b980de51d4caaa1d463fd0f702305b87aec4e (patch) | |
tree | a4cea93fb7095fc3d8d25fc11ddada18a484d3ef /include/asterisk | |
parent | a6402c2d60e5c97a7eefb5b4bdd90154f318bc28 (diff) |
Version 0.1.12 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@445 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/options.h | 1 | ||||
-rwxr-xr-x | include/asterisk/term.h | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 375b216a1..56b23908c 100755 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -24,6 +24,7 @@ extern int option_nofork; extern int option_quiet; extern int option_console; extern int option_initcrypto; +extern int option_nocolor; extern int fully_booted; extern char defaultlanguage[]; diff --git a/include/asterisk/term.h b/include/asterisk/term.h new file mode 100755 index 000000000..1b8f51eec --- /dev/null +++ b/include/asterisk/term.h @@ -0,0 +1,61 @@ +/* + * Asterisk -- A telephony toolkit for Linux. + * + * Handy terminal functions for vt* terms + * + * Copyright (C) 1999, Mark Spencer + * + * Mark Spencer <markster@linux-support.net> + * + * This program is free software, distributed under the terms of + * the GNU General Public License + */ + +#ifndef _ASTERISK_TERM_H +#define _ASTERISK_TERM_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +#define ESC 0x1b +#define ATTR_RESET 0 +#define ATTR_BRIGHT 1 +#define ATTR_DIM 2 +#define ATTR_UNDER 4 +#define ATTR_BLINK 5 +#define ATTR_REVER 7 +#define ATTR_HIDDEN 8 + +#define COLOR_BLACK 30 +#define COLOR_GRAY 30 | 128 +#define COLOR_RED 31 +#define COLOR_BRRED 31 | 128 +#define COLOR_GREEN 32 +#define COLOR_BRGREEN 32 | 128 +#define COLOR_BROWN 33 +#define COLOR_YELLOW 33 | 128 +#define COLOR_BLUE 34 +#define COLOR_BRBLUE 34 | 128 +#define COLOR_MAGENTA 35 +#define COLOR_BRMAGENTA 35 | 128 +#define COLOR_CYAN 36 +#define COLOR_BRCYAN 36 | 128 +#define COLOR_WHITE 37 +#define COLOR_BRWHITE 37 | 128 + +extern char *term_color(char *outbuf, char *inbuf, int fgcolor, int bgcolor, int maxout); + +extern char *term_prompt(char *outbuf, char *inbuf, int maxout); + +extern char *term_prep(void); + +extern char *term_end(void); + +extern char *term_quit(void); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif |