Home and End broken in Intrepid when using fish shell SSH from PuTTY

Bug #291637 reported by Endolith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
base-files (Ubuntu)
New
Undecided
Unassigned
fish (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: base-files

I regularly log into my machine over SSH using PuTTY in Windows. My default login shell is /usr/bin/fish. After upgrading to Intrepid, the Home and End keys are broken.

When I press the Home key it displays [1~
When I press the End key it displays [4~

If I run bash, the keys work as expected.

I'm guessing this has to do with /etc/inputrc, which has these lines:

# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line

Other inputrc bugs are filed with base-files, so I chose that.

Revision history for this message
Endolith (endolith) wrote :

Related thread seems to say that UNcommenting these lines fixes the problem? I don't get it. These keys definitely don't work for me, and these lines are definitely uncommented.

Revision history for this message
Endolith (endolith) wrote :
Revision history for this message
Endolith (endolith) wrote :

Sometimes it just appends the codes as I type them:

> test test test [1~[4~
> test test test [1~[4~[4~[1~[4~[1~[4~[1~[4~[4~[4~ [1~[4~ [1~[4~ [1~[4~
> test test [1~ [4~ test [1~ test [4~testetestestes[4~

Other times, pressing Home replaces the whole line:

> test test test
> [1~

If I use the up arrow to bring back a previous command and then press End, it does this:

> tail
> tail /var/log/daemon.log.0
> tail [4~

Revision history for this message
Endolith (endolith) wrote :

On one computer, if I run bash, pressing Home or End produces a tilde instead

bash:
~$ fdsafdsafdasfdsa~~~~~~

fish:
~> fdasfdsfafdsafa[1~[4~[1~[4~

On another computer ,fish behaves the same way, but Home and End in bash works correctly. Both are running Jaunty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.