mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 07:54:50 -07:00
main: Slight refactor of main. Improve color situation.
Several issues are addressed here: - main() is large, and half of it is only used if we're not rasterisk; fixed by spliting up the daemon part into a separate function. - Call ast_term_init from rasterisk as well. - Remove duplicate code reading/writing asterisk history file. - Attempt to tackle background color issues and color changes that occur. Tested by starting asterisk -c until the colors stopped changing at odd locations. ASTERISK-25585 #close Change-Id: Ib641a0964c59ef9fe6f59efa8ccb481a9580c52f
This commit is contained in:
@@ -63,7 +63,7 @@ extern "C" {
|
||||
/*@} */
|
||||
|
||||
/*! \brief Maximum number of characters needed for a color escape sequence,
|
||||
* plus a null char */
|
||||
* and another one for a trailing reset, plus a null char */
|
||||
#define AST_TERM_MAX_ESCAPE_CHARS 23
|
||||
|
||||
char *term_color(char *outbuf, const char *inbuf, int fgcolor, int bgcolor, int maxout);
|
||||
|
||||
Reference in New Issue
Block a user