]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Version 0.1.12 from FTP
authorMark Spencer <markster@digium.com>
Sun, 12 May 2002 15:08:37 +0000 (15:08 +0000)
committerMark Spencer <markster@digium.com>
Sun, 12 May 2002 15:08:37 +0000 (15:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@445 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.h
include/asterisk/options.h
include/asterisk/term.h [new file with mode: 0755]

index 07106fbf6ed6b34c14a4be2051134e417ddbcd76..6af34dcf3de36ecfd3ffc611a3788ed910370c80 100755 (executable)
@@ -40,4 +40,6 @@ extern int init_logger(void);
 extern int init_framer(void);
 /* Provided by logger.c */
 extern int reload_logger(void);
+/* Provided by term.c */
+extern int term_init(void);
 #endif
index 375b216a182992d8b7371776d7add8192898cad2..56b23908c1f9195f715b1c2ec1a4a3058172589e 100755 (executable)
@@ -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 (executable)
index 0000000..1b8f51e
--- /dev/null
@@ -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