mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 02:50:25 +03:00
[console] Do not share ANSI escape context between lineconsole users
An ANSI escape sequence context cannot be shared between multiple users. Make the ANSI escape sequence context part of the line console definition and provide individual contexts for each user. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -68,10 +68,18 @@ static struct interface syslogger = INTF_INIT ( syslogger_desc );
|
||||
/** Syslog line buffer */
|
||||
static char syslog_buffer[SYSLOG_BUFSIZE];
|
||||
|
||||
/** Syslog ANSI escape sequence handlers */
|
||||
static struct ansiesc_handler syslog_handlers[] = {
|
||||
{ 0, NULL }
|
||||
};
|
||||
|
||||
/** Syslog line console */
|
||||
static struct line_console syslog_line = {
|
||||
.buffer = syslog_buffer,
|
||||
.len = sizeof ( syslog_buffer ),
|
||||
.ctx = {
|
||||
.handlers = syslog_handlers,
|
||||
},
|
||||
};
|
||||
|
||||
/** Syslog recursion marker */
|
||||
|
||||
Reference in New Issue
Block a user