From dd7cf89f5b61745f41356a40ec2c5737bb703e45 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 18 Sep 2002 02:42:08 +0000 Subject: 2002-09-18 Marcus Brinkmann * hurd.ti: Change and to escape bracket right-angle sequences. Add , , and , disable . * display.c (handle_esc_bracket_m): Map \E[21m to normal intensity (as a way to switch off bright intensity). (handle_esc_bracket): Fix calculation of fill area for . (struct scrolling_region): New type. (struct display): New members INSERT_MODE and CSR. (display_output_one): For , also reset DISPLAY->insert_mode and DISPLAY->csr. (display_create): Initialize DISPLAY->csr.bottom. (display_output_one): If in insert mode, shift to the right before printing the character. (linefeed): Take scrolling region into account. (handle_esc_bracket): Switch the meaning of 'h' and 'l'. (handle_esc_bracket_question): Likewise. (handle_esc_bracket_question_hl): Switch the interpretation of FLAG. (handle_esc_bracket_hl): Likewise. Add support for insert mode and . (struct parse): New state STATE_ESC_BRACKET_RIGHT_ANGLE. (display_output_one): Handle STATE_ESC_BRACKET_RIGHT_ANGLE. (display_output_one): Move the bold attribute handling from here (, ) ... (handle_esc_bracket_right_angle_hl): ... to here. New function handling and . (handle_esc_bracket_right_angle): New function. (handle_esc_bracket): Implement . --- console/hurd.ti | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'console/hurd.ti') diff --git a/console/hurd.ti b/console/hurd.ti index ea95fcc4..18c86624 100644 --- a/console/hurd.ti +++ b/console/hurd.ti @@ -19,6 +19,8 @@ hurd|The GNU Hurd console server, # Moving the cursor. # We have automatic margins. am, +# We wrap around the left edge. + bw, # Carriage return and newline. cr=^M, nel=^M^J, # Move cursor to home position (to position P1, P2). @@ -35,9 +37,8 @@ hurd|The GNU Hurd console server, hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd, # Save (restore) cursor position. sc=\E7, rc=\E8, -# XXX When we support this. # Set the scrolling region to lines P1 to P2. -# csr=\E[%i%p1%d;%p2%dr, + csr=\E[%i%p1%d;%p2%dr, # Modifying cursor attributes. # Make cursor invisible, very visible or normal. @@ -66,13 +67,13 @@ hurd|The GNU Hurd console server, el=\E[K, el1=\E[1K, # Insert one character (P1 characters). -# XXX Don't give this when having insert mode. - ich1=\E[@, ich=\E[%p1%d@, -# XXX When we implement insert mode (smir and rmir) (but don't set ich1 then): +# not included because we have insert mode. +# ich1=\E[@, + ich=\E[%p1%d@, # Enter (leave) insert mode. -# smir=\E[4h, rmir=\E[4l, + smir=\E[4h, rmir=\E[4l, # It is save to move when in insert mode. -# mir, + mir, # Delete one character (P1 characters). dch1=\E[P, dch=\E[%p1%dP, # Erase the next N characters. @@ -95,6 +96,7 @@ hurd|The GNU Hurd console server, # Flash the screen (visible bell). flash=\Eg, + # Keycodes for special keys. # Backspace key. kbs=\177, @@ -136,7 +138,8 @@ hurd|The GNU Hurd console server, # Video attributes colliding with color. # ORed: A_STANDOUT 1, A_UNDERLINE 2, A_REVERSE 4, A_BLINK 8, A_DIM 16, # A_BOLD 32, A_INVIS 64 - ncv#18, +# We do our own display optimization, depending on the display driver. +# ncv#18, # Set background (foreground) color. setab=\E[4%p1%dm, setaf=\E[3%p1%dm, # Set default color pair to its original value. @@ -157,7 +160,7 @@ hurd|The GNU Hurd console server, sitm=\E[3m, ritm=\E[23m, # Enable (disable) real bold (not intensity bright) mode. This is a # GNU extension. - gsbom=\EQ, grbom=\ER, + gsbom=\E[>1h, grbom=\E[>1l, # XXX Linux has those also for rmpch and smpch. # Enable (disable) alternative character set. smacs=\E[11m, rmacs=\E[10m, -- cgit v1.2.3