[Top][All Lists]

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

No way to 'bind -x' symbolic character names

From: Nikolaos Kakouros
Subject: No way to 'bind -x' symbolic character names
Date: Fri, 29 Nov 2019 16:39:17 +0000

Using bash version:

GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)

Trying to map Backspace to execute a function, I try to do:

bind -x '"Rubout": my_func'

This, as expected, binds the string 'Rubout' to the function. Omitting the 
double quotes makes bind fail. Escaping, like `\Rubout`, works neither.

This is important in the case of Backspace, as there is no (to my knowledge) 
other way to bind the backspace than using Rubout. Using Konsole as my terminal 
emulator, `C-v Backspace` prints `^?` which I haven't managed to use with bind.

reply via email to

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