Skip to content

Up and Down arrows print boxed X ... fish 2.2.0 + Cygwin (64 bit) + MinTTY #2260

Closed

Description

@macdanny

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.

Activity

  1. macdanny commented on Aug 2, 2015

    @macdanny
    Author

    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.

  2. locked as resolved and limited conversation to collaborators on Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions