bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect offset for mouse data


From: Marco Gerards
Subject: Incorrect offset for mouse data
Date: Fri, 26 Mar 2004 20:14:33 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hi,

In hurd/console.h there is the macro `CONS_MOUSE_OFFSET_BASE'.
According to the documentation I read about the xterm terminal
capabilities it should be set to 040 (octal), which is 0x20.  It is
currently set to 0x21.  This needs to be fixed before the console can
support a mouse driver (like xterm does).

Here is a patch to fix this problem.  Is it ok to apply this?

Thanks,
Marco


2004-03-27  Marco Gerards  <metgerards@student.han.nl>

        * console.h (CONS_MOUSE_OFFSET_BASE): Redefined to 0x20.

Index: console.h
===================================================================
RCS file: /cvsroot/hurd/hurd/hurd/console.h,v
retrieving revision 1.7
diff -u -p -r1.7 console.h
--- console.h   4 Oct 2002 10:23:00 -0000       1.7
+++ console.h   26 Mar 2004 19:00:40 -0000
@@ -282,7 +282,7 @@ struct cons_display
 #define CONS_MOUSE_MOD_CTRL    0x10
 
 /* Screen positions are offset by this value.  */
-#define CONS_MOUSE_OFFSET_BASE 0x21
+#define CONS_MOUSE_OFFSET_BASE 0x20
 
 #define CONS_MOUSE_EVENT_LENGTH 6
 #define CONS_MOUSE_EVENT_PREFIX "\e[M"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]