aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/lineconsole.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-03-26 21:03:59 +0100
committerMichael Brown <mcb30@ipxe.org>2012-03-26 21:58:50 +0100
commitc2875ae32952690e11fc6f654fa48f4f2c9f0567 (patch)
treefca03fb4effcb19498caa8729ad782065cd633bb /src/include/ipxe/lineconsole.h
parent24b7296319666709ac49bedb47df18d0bc37704e (diff)
downloadipxe-c2875ae32952690e11fc6f654fa48f4f2c9f0567.tar.gz
[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>
Diffstat (limited to 'src/include/ipxe/lineconsole.h')
-rw-r--r--src/include/ipxe/lineconsole.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/lineconsole.h b/src/include/ipxe/lineconsole.h
index d53a0e9f9..925c0accc 100644
--- a/src/include/ipxe/lineconsole.h
+++ b/src/include/ipxe/lineconsole.h
@@ -10,6 +10,7 @@
FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
+#include <ipxe/ansiesc.h>
/** A line-based console */
struct line_console {
@@ -26,6 +27,8 @@ struct line_console {
* a potential terminating NUL.
*/
size_t len;
+ /** ANSI escape sequence context */
+ struct ansiesc_context ctx;
};
extern size_t line_putchar ( struct line_console *line, int character );