summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-18 17:31:54 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-18 17:31:54 +0000
commit1387460130760179bb62909bb7c7696102fdd0e7 (patch)
treeae0e4cac63c6209f39ac3630e47d4a08185380f0 /console
parentec2bf5d74c07fb9a8eeebd32687bab7cbbcdbe95 (diff)
hurd/
2002-09-18 Marcus Brinkmann <marcus@gnu.org> * console.h (struct cons_display): Add a new flag CONS_FLAGS_TRACK_MOUSE. (CONS_MOUSE_BUTTON_MASK, CONS_MOUSE_BUTTON1, CONS_MOUSE_BUTTON2, CONS_MOUSE_BUTTON3, CONS_MOUSE_RELEASE, CONS_MOUSE_MOD_MASK, CONS_MOUSE_MOD_SHIFT, CONS_MOUSE_MOD_META, CONS_MOUSE_MOD_CTRL, CONS_MOUSE_OFFSET_BASE, CONS_MOUSE_EVENT_LENGTH, CONS_MOUSE_EVENT_PREFIX, CONS, MOUSE_EVENT): New macro. (CONS_KEY_B2): New macro. console/ 2002-09-18 Marcus Brinkmann <marcus@gnu.org> * hurd.ti: Enable <kb2> and <kmouse>, fix the comments. * display.c (handle_esc_bracket_question_hl): Handle escape bracket 1000 h/l for XTerm-like mouse tracking enable/disable.
Diffstat (limited to 'console')
-rw-r--r--console/ChangeLog4
-rw-r--r--console/display.c8
-rw-r--r--console/hurd.ti28
3 files changed, 22 insertions, 18 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 9ba7ff7f..865f8cfd 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,5 +1,9 @@
2002-09-18 Marcus Brinkmann <marcus@gnu.org>
+ * hurd.ti: Enable <kb2> and <kmouse>, fix the comments.
+ * display.c (handle_esc_bracket_question_hl): Handle escape
+ bracket 1000 h/l for XTerm-like mouse tracking enable/disable.
+
* display.c (handle_esc_bracket): Use scrolling region for <ind>,
<indn>, <ri>, <rin>, <il1>, <il>, <dl1> and <dl>. Also fix
off-by-one error in <ri>, <rin>.
diff --git a/console/display.c b/console/display.c
index 985eb759..fd257fe7 100644
--- a/console/display.c
+++ b/console/display.c
@@ -1427,6 +1427,14 @@ handle_esc_bracket_question_hl (display_t display, int code, int flag)
display->user->cursor.status = CONS_CURSOR_INVISIBLE;
/* XXX Flag cursor status change. */
break;
+ case 1000:
+ /* XTerm mouse tracking. */
+ if (flag)
+ display->user->flags |= CONS_FLAGS_TRACK_MOUSE;
+ else
+ display->user->flags &= ~CONS_FLAGS_TRACK_MOUSE;
+ /* XXX Flag flags change. */
+ break;
}
}
diff --git a/console/hurd.ti b/console/hurd.ti
index 18c86624..68869d8d 100644
--- a/console/hurd.ti
+++ b/console/hurd.ti
@@ -7,12 +7,9 @@ hurd|The GNU Hurd console server,
# Hard reset.
rs1=\EM,
-# Compatibility:
-# to vt100: We don't specify <xenl>, as we don't have the
-# eat_newline_glitch. We don't support scrolling regions. We don't
-# support setting/removing tab stops.
-# to linux: W, we don't have PC character set. We don't have insert
-# mode.
+# Note about compatibility to vt100: We don't specify <xenl>, as we
+# don't have the eat_newline_glitch. We don't support setting or
+# removing tab stops (hts/tbc).
# Cursor related capabilities.
@@ -82,9 +79,8 @@ hurd|The GNU Hurd console server,
il1=\E[L, il=\E[%p1%dL,
# Delete one line (P1 lines).
dl1=\E[M, dl=\E[%p1%dM,
-# Scroll the whole screen one line (P1 lines) upwards.
-# XXX Good optimization is to use ^J as Linux, although this will put
-# things into the scrollback buffer, which might not be what we want.
+# Scroll the whole screen one line (P1 lines) upwards. We don't use
+# ^J, because this could put things into the scrollback buffer.
ind=\E[S, indn=\E[%p1%dS,
# Scroll the whole screen one line (P1 lines) downwards.
rin=\E[%p1%dT, ri=\E[T,
@@ -116,15 +112,10 @@ hurd|The GNU Hurd console server,
khome=\E[1~, kich1=\E[2~, kdch1=\E[3~, kend=\E[4~,
# Keycode for previous (next) page key.
kpp=\E[5~, knp=\E[6~,
-# XXX When we implement this.
# Keycode for center of keypad area.
-# kb2=\E[G
-# XXX When we implement this.
+ kb2=\E[G,
# Mouse event has occured.
-# kmous=\E[M,
-# XXX How does this come here? We don't have Lower Left.
-# kll=\E[F,
-
+ kmous=\E[M,
# Text attribute capabilities.
acsc=++\,\,--..00ii``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
@@ -138,7 +129,9 @@ 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
-# We do our own display optimization, depending on the display driver.
+# We don't define this as we do our own display optimization,
+# depending on the display driver. Alternatively, we could provide
+# different terminfo entries.
# ncv#18,
# Set background (foreground) color.
setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
@@ -161,7 +154,6 @@ hurd|The GNU Hurd console server,
# Enable (disable) real bold (not intensity bright) mode. This is a
# GNU extension.
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,
# Set all attributes.