From 135bf35b1189a4402dcca13685331c3fb2d901f5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Dec 2013 17:20:36 +0000 Subject: [console] Allow '?' as an intermediate byte in ANSI escape sequences The ANSI escape sequences to show and hide the cursor take the form "[?25h" and "[?25l" respectively. iPXE currently treats the '?' character as the final byte. Fix by explicitly treating '?' as an intermediate byte. Signed-off-by: Michael Brown --- src/include/ipxe/ansiesc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/ipxe') diff --git a/src/include/ipxe/ansiesc.h b/src/include/ipxe/ansiesc.h index e84545769..c1c74481d 100644 --- a/src/include/ipxe/ansiesc.h +++ b/src/include/ipxe/ansiesc.h @@ -124,6 +124,12 @@ struct ansiesc_context { */ #define ANSIESC_LOG_PRIORITY 'p' +/** Show cursor */ +#define ANSIESC_DECTCEM_SET ( ( '?' << 8 ) | 'h' ) + +/** Hide cursor */ +#define ANSIESC_DECTCEM_RESET ( ( '?' << 8 ) | 'l' ) + /** @} */ extern int ansiesc_process ( struct ansiesc_context *ctx, int c ); -- cgit v1.2.3-55-g7522