From f2d4f1d227a22002b5ddb7ceddcd9b22fd8c5585 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Tue, 1 Feb 2011 01:50:16 -0500 Subject: [PATCH] Secondary device attributes for vt220 --- terminalfunctions.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/terminalfunctions.cpp b/terminalfunctions.cpp index d0715a5..f50e0a9 100644 --- a/terminalfunctions.cpp +++ b/terminalfunctions.cpp @@ -94,11 +94,19 @@ static Function func_CSI_cursormove_f( CSI, "f", CSI_cursormove ); /* device attributes */ void CSI_DA( Framebuffer *fb __attribute((unused)), Dispatcher *dispatch ) { - dispatch->terminal_to_host.append( "\033[?1;0c" ); + dispatch->terminal_to_host.append( "\033[?62c" ); /* plain vt220 */ } static Function func_CSI_DA( CSI, "c", CSI_DA ); +/* secondary device attributes */ +void CSI_SDA( Framebuffer *fb __attribute((unused)), Dispatcher *dispatch ) +{ + dispatch->terminal_to_host.append( "\033[>1;10;0c" ); /* plain vt220 */ +} + +static Function func_CSI_SDA( CSI, ">c", CSI_SDA ); + /* screen alignment diagnostic */ void Esc_DECALN( Framebuffer *fb, Dispatcher *dispatch __attribute((unused)) ) {