nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] input: erase the next word when Ctrl is held wh


From: Marco Diego Aurélio Mesquita
Subject: Re: [Nano-devel] [PATCH] input: erase the next word when Ctrl is held while pressing Delete
Date: Sun, 22 Jul 2018 11:37:18 -0300

On Sun, Jul 22, 2018 at 5:02 AM, Benno Schulenberg <address@hidden> wrote:
>
> Op 21-07-18 om 23:58 schreef Marco Diego Aurélio Mesquita:
>> On Sat, Jul 21, 2018 at 4:31 AM, Benno Schulenberg <address@hidden> wrote:
>>> Marco, can you remove the #ifdef around the "hex codes" fragment
>>> in winio.c, and report what keycode the <Delete> key and the
>>> <Ctrl+Delete> combination produce on your Linux console?
>>
>> On my raspberry pi, running Raspbian GNU/Linux 9.4 (stretch), and on a
>> linux VT it erases one word with ctrl+delete and ctrl+keypad_delete
>> (with and without -K).
>
> You're not answering the question.  What hex codes does the <Delete> key
> and the <Ctr+Delete> keystroke produce?
>

Tried on my x86 Ubuntu 16.04 machine. On a VT both delete and
ctrl+delete produce 14a hex codes.

Also, I think may be related. My Ubuntu 16.04 no longer has VT's by
default. So, I have to run "sudo /sbin/getty 38400 tty2" to get a VT
on virtual console 2. Maybe this is also influencing the results.

>> Anyway, I can test it again on the x86 system by monday. Do you want
>> to test it again on the x86?
>
> Certainly.  And not just test, but also answer the question.
>
> Further, paste the output of running the following command on a
> Linux console:
>

The dumps you asked for:

keycode  14 = Delete
    control    keycode  14 = BackSpace
    shift    control    keycode  14 = BackSpace
    altgr    control    keycode  14 = BackSpace
    shift    altgr    control    keycode  14 = BackSpace
    alt    keycode  14 = Meta_Delete
    shift    alt    keycode  14 = Meta_Delete
    altgr    alt    keycode  14 = Meta_Delete
    shift    altgr    alt    keycode  14 = Meta_Delete
    control    alt    keycode  14 = Meta_BackSpace
    shift    control    alt    keycode  14 = Meta_BackSpace
    altgr    control    alt    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    keycode  14 = Meta_BackSpace
    control    shiftl    keycode  14 = BackSpace
    shift    control    shiftl    keycode  14 = BackSpace
    altgr    control    shiftl    keycode  14 = BackSpace
    shift    altgr    control    shiftl    keycode  14 = BackSpace
    alt    shiftl    keycode  14 = Meta_Delete
    shift    alt    shiftl    keycode  14 = Meta_Delete
    altgr    alt    shiftl    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftl    keycode  14 = Meta_Delete
    control    alt    shiftl    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftl    keycode  14 = Meta_BackSpace
    altgr    control    alt    shiftl    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    shiftl    keycode  14 = Meta_BackSpace
    control    shiftr    keycode  14 = BackSpace
    shift    control    shiftr    keycode  14 = BackSpace
    altgr    control    shiftr    keycode  14 = BackSpace
    shift    altgr    control    shiftr    keycode  14 = BackSpace
    alt    shiftr    keycode  14 = Meta_Delete
    shift    alt    shiftr    keycode  14 = Meta_Delete
    altgr    alt    shiftr    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftr    keycode  14 = Meta_Delete
    control    alt    shiftr    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftr    keycode  14 = Meta_BackSpace
    altgr    control    alt    shiftr    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    shiftr    keycode  14 = Meta_BackSpace
    control    shiftl    shiftr    keycode  14 = BackSpace
    shift    control    shiftl    shiftr    keycode  14 = BackSpace
    altgr    control    shiftl    shiftr    keycode  14 = BackSpace
    shift    altgr    control    shiftl    shiftr    keycode  14 =
BackSpace
    alt    shiftl    shiftr    keycode  14 = Meta_Delete
    shift    alt    shiftl    shiftr    keycode  14 = Meta_Delete
    altgr    alt    shiftl    shiftr    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftl    shiftr    keycode  14 = Meta_Delete
    control    alt    shiftl    shiftr    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftl    shiftr    keycode  14 = Meta_BackSpace
    altgr    control    alt    shiftl    shiftr    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    shiftl    shiftr    keycode
14 = Meta_BackSpace
    control    ctrll    keycode  14 = BackSpace
    shift    control    ctrll    keycode  14 = BackSpace
    altgr    control    ctrll    keycode  14 = BackSpace
    shift    altgr    control    ctrll    keycode  14 = BackSpace
    alt    ctrll    keycode  14 = Meta_Delete
    shift    alt    ctrll    keycode  14 = Meta_Delete
    altgr    alt    ctrll    keycode  14 = Meta_Delete
    shift    altgr    alt    ctrll    keycode  14 = Meta_Delete
    control    alt    ctrll    keycode  14 = Meta_BackSpace
    shift    control    alt    ctrll    keycode  14 = Meta_BackSpace
    altgr    control    alt    ctrll    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    ctrll    keycode  14 = Meta_BackSpace
    control    shiftl    ctrll    keycode  14 = BackSpace
    shift    control    shiftl    ctrll    keycode  14 = BackSpace
    altgr    control    shiftl    ctrll    keycode  14 = BackSpace
    shift    altgr    control    shiftl    ctrll    keycode  14 =
BackSpace
    alt    shiftl    ctrll    keycode  14 = Meta_Delete
    shift    alt    shiftl    ctrll    keycode  14 = Meta_Delete
    altgr    alt    shiftl    ctrll    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftl    ctrll    keycode  14 = Meta_Delete
    control    alt    shiftl    ctrll    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftl    ctrll    keycode  14 = Meta_BackSpace
    altgr    control    alt    shiftl    ctrll    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    shiftl    ctrll    keycode  14
= Meta_BackSpace
    control    shiftr    ctrll    keycode  14 = BackSpace
    shift    control    shiftr    ctrll    keycode  14 = BackSpace
    altgr    control    shiftr    ctrll    keycode  14 = BackSpace
    shift    altgr    control    shiftr    ctrll    keycode  14 =
BackSpace
    alt    shiftr    ctrll    keycode  14 = Meta_Delete
    shift    alt    shiftr    ctrll    keycode  14 = Meta_Delete
    altgr    alt    shiftr    ctrll    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftr    ctrll    keycode  14 = Meta_Delete
    control    alt    shiftr    ctrll    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftr    ctrll    keycode  14 = Meta_BackSpace
    altgr    control    alt    shiftr    ctrll    keycode  14 = Meta_BackSpace
    shift    altgr    control    alt    shiftr    ctrll    keycode  14
= Meta_BackSpace
    control    shiftl    shiftr    ctrll    keycode  14 = BackSpace
    shift    control    shiftl    shiftr    ctrll    keycode  14 =
BackSpace
    altgr    control    shiftl    shiftr    ctrll    keycode  14 =
BackSpace
    shift    altgr    control    shiftl    shiftr    ctrll    keycode
14 = BackSpace
    alt    shiftl    shiftr    ctrll    keycode  14 = Meta_Delete
    shift    alt    shiftl    shiftr    ctrll    keycode  14 = Meta_Delete
    altgr    alt    shiftl    shiftr    ctrll    keycode  14 = Meta_Delete
    shift    altgr    alt    shiftl    shiftr    ctrll    keycode  14
= Meta_Delete
    control    alt    shiftl    shiftr    ctrll    keycode  14 = Meta_BackSpace
    shift    control    alt    shiftl    shiftr    ctrll    keycode
14 = Meta_BackSpace
    altgr    control    alt    shiftl    shiftr    ctrll    keycode
14 = Meta_BackSpace
    shift    altgr    control    alt    shiftl    shiftr    ctrll
keycode  14 = Meta_BackSpace
keycode 114 = F14              F14              F14
    control    keycode 114 = F14
    shift    control    keycode 114 = F14
    alt    keycode 114 = F14
    control    alt    keycode 114 = F14
keycode 214 = nul              nul              nul
    control    keycode 214 = nul
    shift    control    keycode 214 = nul
    alt    keycode 214 = nul
    control    alt    keycode 214 = nul
string F14 = "\033[26~"


   System Locale: LANG=pt_BR.UTF-8
                  LANGUAGE=pt_BR:pt:en
       VC Keymap: n/a
      X11 Layout: br
       X11 Model: pc105



reply via email to

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