You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Up and Down arrows print boxed X ... fish 2.2.0 + Cygwin (64 bit) + MinTTY #2260
I downloaded the source code for the fish 2.2.0 release and built and installed it in Cygwin. Up and down arrows keys print a little red box with an X through it. Left and right arrow keys work, home and end arrow keys work, pgup and pgdn work. Up and down arrows do successfully work to navigate through history in a different shell (zsh).
MinTTY is configured with xterm-256color and "Backspace sends ^H" checked. I don't think there are any other MinTTY settings that could affect this.
If I cat > output.txt and press up arrow, down arrow, enter, enter, ctrl-d, output.txt contains the following bytes 1b 5b 41 1b 5b 42 0a 0a
I found another ticket that talked about increasing WAIT_ON_ESCAPE in input_common.cpp, which I have tried. It had no effect. And it doesn't seem likely that it would, given that other escape sequences (left and right arrow, for example) are being sent and interpreted properly.
I admit to being a fish out of water (no pun intended) when it comes to this terminal stuff. I've been using Linux, FreeBSD Solaris etc. for about 15 years and it has never made sense to me.
Any suggestions or ideas will be gratefully received.
I did some more experimentation and I found I could bind up-arrow to other commands, e.g. the following works:
bind \e[A history-search-backward
So the issue isn't with the terminfo stuff, up-or-search isn't working (or at least, not in a way that makes sense to me).
Since I have a solution to the issue I reported, I will close this issue. I've only just started using fish and I'm not able to determine whether up-or-search is behaving as it should.
Activity
macdanny commentedon Aug 2, 2015
I did some more experimentation and I found I could bind up-arrow to other commands, e.g. the following works:
bind \e[A history-search-backward
So the issue isn't with the terminfo stuff, up-or-search isn't working (or at least, not in a way that makes sense to me).
Since I have a solution to the issue I reported, I will close this issue. I've only just started using fish and I'm not able to determine whether up-or-search is behaving as it should.