diff options
author | Michael Brown | 2013-11-25 15:01:40 +0100 |
---|---|---|
committer | Michael Brown | 2013-11-27 12:27:50 +0100 |
commit | 02a63c6dec835943bf9bf64fae72d391c696a639 (patch) | |
tree | 21cd9a0967675db705cfe66168fea950b7f4d03e /src/interface/efi/efi_console.c | |
parent | [main] Defer "initialising devices" message until initialising devices (diff) | |
download | ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.tar.gz ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.tar.xz ipxe-02a63c6dec835943bf9bf64fae72d391c696a639.zip |
[console] Pass escape sequence context to ANSI escape sequence handlers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_console.c')
-rw-r--r-- | src/interface/efi/efi_console.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/interface/efi/efi_console.c b/src/interface/efi/efi_console.c index d86d30c9..af60d4f9 100644 --- a/src/interface/efi/efi_console.c +++ b/src/interface/efi/efi_console.c @@ -64,11 +64,13 @@ static unsigned int efi_attr = ATTR_DEFAULT; /** * Handle ANSI CUP (cursor position) * + * @v ctx ANSI escape sequence context * @v count Parameter count * @v params[0] Row (1 is top) * @v params[1] Column (1 is left) */ -static void efi_handle_cup ( unsigned int count __unused, int params[] ) { +static void efi_handle_cup ( struct ansiesc_context *ctx __unused, + unsigned int count __unused, int params[] ) { EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *conout = efi_systab->ConOut; int cx = ( params[1] - 1 ); int cy = ( params[0] - 1 ); @@ -84,11 +86,13 @@ static void efi_handle_cup ( unsigned int count __unused, int params[] ) { /** * Handle ANSI ED (erase in page) * + * @v ctx ANSI escape sequence context * @v count Parameter count * @v params[0] Region to erase */ -static void efi_handle_ed ( unsigned int count __unused, - int params[] __unused ) { +static void efi_handle_ed ( struct ansiesc_context *ctx __unused, + unsigned int count __unused, + int params[] __unused ) { EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *conout = efi_systab->ConOut; /* We assume that we always clear the whole screen */ @@ -100,10 +104,12 @@ static void efi_handle_ed ( unsigned int count __unused, /** * Handle ANSI SGR (set graphics rendition) * + * @v ctx ANSI escape sequence context * @v count Parameter count * @v params List of graphic rendition aspects */ -static void efi_handle_sgr ( unsigned int count, int params[] ) { +static void efi_handle_sgr ( struct ansiesc_context *ctx __unused, + unsigned int count, int params[] ) { EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *conout = efi_systab->ConOut; static const uint8_t efi_attr_fcols[10] = { ATTR_FCOL_BLACK, ATTR_FCOL_RED, ATTR_FCOL_GREEN, |