Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609786

[PATCH v2 1/2] vt: set mouse selection word-chars to gpm's default

From Adam Borowski <kilobyte@angband.pl>
Newsgroups linux.kernel
Subject [PATCH v2 1/2] vt: set mouse selection word-chars to gpm's default
Date 2017-03-27 14:30 +0200
Message-ID <tpBWz-80f-45@gated-at.bofh.it> (permalink)
References <tpBtw-7vp-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Since forever, gpm was this code's only user, and it overrides the table on
start so the default was never seen -- until Bill Allombert's "consolation"
came in.  The in-kernel set is "A-Za-z0-9_" which fails to catch typical
file names, etc.  Let's change this to gpm's conservative default, ie
"-A-Za-z0-9_./"; most terminals include more, for example xfce4-terminal has
"-A-Za-z0-9,./?%&#:_=+@~".

There's some discussion at https://bugs.debian.org/846587

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
v2: no changes in this patch, resent as part of the set.

 drivers/tty/vt/selection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c
index 36e1b8c7680f..2252e11d8347 100644
--- a/drivers/tty/vt/selection.c
+++ b/drivers/tty/vt/selection.c
@@ -84,7 +84,7 @@ void clear_selection(void)
  */
 static u32 inwordLut[8]={
   0x00000000, /* control chars     */
-  0x03FF0000, /* digits            */
+  0x03FFE000, /* digits and "-./"  */
   0x87FFFFFE, /* uppercase and '_' */
   0x07FFFFFE, /* lowercase         */
   0x00000000,
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] vt: mouse selection word boundaries Adam Borowski <kilobyte@angband.pl> - 2017-03-27 12:40 +0200
  [PATCH 2/2] vt: make mouse selection of non-ASCII consistent Adam Borowski <kilobyte@angband.pl> - 2017-03-27 12:50 +0200
    Re: [PATCH 2/2] vt: make mouse selection of non-ASCII consistent Jiri Slaby <jslaby@suse.cz> - 2017-03-27 14:00 +0200
      [PATCH v2 2/2] vt: make mouse selection of non-ASCII consistent Adam Borowski <kilobyte@angband.pl> - 2017-03-27 14:30 +0200
      [PATCH v2 1/2] vt: set mouse selection word-chars to gpm's default Adam Borowski <kilobyte@angband.pl> - 2017-03-27 14:30 +0200
  [PATCH 1/2] vt: set mouse selection word-chars to gpm's default Adam Borowski <kilobyte@angband.pl> - 2017-03-27 12:50 +0200

csiph-web