Windows rxvt backspace key version not working properly

I am using rxvt.exe, an alternative to bash.exe that comes with msysgit. My OS is WinXP.

I invoke the console using "C: \ Program Files \ Git \ bin \ rxvt.exe" -e / usr / bin / bash --login -i

The backspace key removes everything back to the beginning of the line, and not just one char back.

I experimented with things like

'bind "Ce":backward-delete-char' just to see if I can bind the behavior to a ctrl sequence, and that works, but I can't figure out how to bind with the backspace key. I've tried binding to e\14 and e\08, but they don't work. 

Many Linux solutions appeared in an extensive Google search, but very little for rxvt for Windows, and nothing about this problem.

Thanks to a million everyone who can give an answer!

-Jill

+4
source share
1 answer

I have a solution for you! Thanks for that, I know this is a problem, but I never knew how to fix it. Here you are:

  • Run the git bash shell
  • cd ~ (your home directory)
  • Create a new file named .inputrc and fill it as follows:

     "\e[3~": delete-char # this is actually equivalent to "\C-?": delete-char # VT "\e[1~": beginning-of-line "\e[4~": end-of-line # kvt "\e[H":beginning-of-line "\e[F":end-of-line # rxvt and konsole (ie the KDE-app...) "\e[7~":beginning-of-line "\e[8~":end-of-line 
  • Save the file and exit it, you can restart it using the original command "C:\Program Files\Git\bin\rxvt.exe" -e /usr/bin/bash --login -i and use the reverse space!

The inspiration for this solution is found here .

Thanks!

+7
source

Source: https://habr.com/ru/post/1398306/


All Articles