bugGNU nano - Bugs: bug #57981, unexpected behaviour of Backspace...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #57981: unexpected behaviour of Backspace when binding ^H on macOS

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 10 Mar 2020 01:03:46 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Wed 25 Mar 2020 10:04:35 AM UTC, comment #3: 

Fixed in version 4.9.

Benno Schulenberg <bens>
Group administrator
Tue 10 Mar 2020 01:45:52 PM UTC, comment #2: 

Fixed in git, commit cbbfebbc.

(Note that any rebinding of ^H on a terminal emulator on the BSDs or macOS will still only work when --raw/-K is used.)

Benno Schulenberg <bens>
Group administrator
Tue 10 Mar 2020 01:22:09 PM UTC, comment #1: 

Hm.  The "translating" of ^H to Bsp on Apple and FreeBSD and NetBSD does not have the intended effect.  I've just now run nan-4.8 on a real NomadBSD console and Sakura terminal emulator.  On the console, there is no point in trying to rebind ^H, because it would rebind <Backspace> too, and I cannot imagine people really wanting that.  And on a terminal emulator, it would be perfectly possible to rebind ^H separately from <Backspace> (when using --raw/-K), but the "translation" code prevents that, causing in fact the opposite rebinding to occur: <Backspace> is rebound, and ^H continues deleting to the left.

In short: the translating of ^H to Bsp on FreeBSD and NetBSD and Apple is no good.  Also, trying to make allowances for the BSD consoles does not have much value: selecting text while holding Shift does not work there either, nor do Ctrl+arrow.

Benno Schulenberg <bens>
Group administrator
Tue 10 Mar 2020 01:03:46 PM UTC, original submission:  

(Original report by Ciprian Tomoiaga in https://lists.gnu.org/archive/html/help-nano/2020-03/msg00002.html.)

"""I am binding ^H to `replace all`. This has the unexpected result that pressing Backspace enters the replace menu. I know that on some terminals Backspace generates ^H, but if I use the shortcut for `Verbatim Input` and press Backspace, I get `^?`."""

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-25 bens Open/ClosedOpen Closed
    2020-03-10 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code