diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-09-18 02:42:08 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-09-18 02:42:08 +0000 |
commit | dd7cf89f5b61745f41356a40ec2c5737bb703e45 (patch) | |
tree | e4e1a3479acd6cdf8fc3535353c058cfdd12503e /console/hurd.ti | |
parent | be8111957c00d9541ec64a9ffcd0fd7a5f453d91 (diff) |
2002-09-18 Marcus Brinkmann <marcus@gnu.org>
* hurd.ti: Change <gsbom> and <grbom> to escape bracket
right-angle sequences. Add <csr>, <smir>, <rmir> and <mir>,
disable <ich1>.
* 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 <ech>.
(struct scrolling_region): New type.
(struct display): New members INSERT_MODE and CSR.
(display_output_one): For <rs2>, 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
<smir> and <rmir>.
(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
(<PU1>, <PU2>) ...
(handle_esc_bracket_right_angle_hl): ... to here. New function
handling <gsbom> and <grbom>.
(handle_esc_bracket_right_angle): New function.
(handle_esc_bracket): Implement <csr>.
Diffstat (limited to 'console/hurd.ti')
-rw-r--r-- | console/hurd.ti | 21 |
1 files changed, 12 insertions, 9 deletions
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): +# <ich1> 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, |