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


Groups > gnu.bash.bug > #15678 > unrolled thread

No way to 'bind -x' symbolic character names

Started byNikolaos Kakouros <nkak@kth.se>
First post2019-11-29 16:39 +0000
Last post2019-11-29 16:39 +0000
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  No way to 'bind -x' symbolic character names Nikolaos Kakouros <nkak@kth.se> - 2019-11-29 16:39 +0000

#15678 — No way to 'bind -x' symbolic character names

FromNikolaos Kakouros <nkak@kth.se>
Date2019-11-29 16:39 +0000
SubjectNo way to 'bind -x' symbolic character names
Message-ID<mailman.3080.1575045570.13325.bug-bash@gnu.org>
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.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web