mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 12:25:35 +00:00
Merge "main: Slight refactor of main. Improve color situation."
This commit is contained in:
@@ -67,8 +67,8 @@ extern "C" {
|
||||
#define COLORIZE_FMT "%s%s%s"
|
||||
#define COLORIZE(fg, bg, str) ast_term_color(fg,bg),str,ast_term_reset()
|
||||
/*! \brief Maximum number of characters needed for a color escape sequence,
|
||||
* plus a null char */
|
||||
#define AST_TERM_MAX_ESCAPE_CHARS 12
|
||||
* and another one for a trailing reset, plus a null char */
|
||||
#define AST_TERM_MAX_ESCAPE_CHARS 23
|
||||
#define AST_TERM_MAX_ROTATING_BUFFERS 15
|
||||
|
||||
/*! \brief Colorize a specified string by adding terminal color codes
|
||||
@@ -137,10 +137,6 @@ char *term_strip(char *outbuf, const char *inbuf, int maxout);
|
||||
|
||||
void term_filter_escapes(char *line);
|
||||
|
||||
char *term_prompt(char *outbuf, const char *inbuf, int maxout);
|
||||
|
||||
const char *term_prep(void);
|
||||
|
||||
const char *term_end(void);
|
||||
|
||||
const char *term_quit(void);
|
||||
|
||||
Reference in New Issue
Block a user