Skip to content

Multi-line prompts are repeated when the terminal window is resized. (repeat of #321) #2320

Closed

Description

@joesanford

This bug is still occurring with both multi-line and single-line prompts.

Activity

  1. faho commented on Aug 19, 2015

    @faho
    Member

    Could you add some more information? Which OS, which terminal, which fish version? What's your prompt? Any custom functions, especially signal handlers for SIGWINCH?

    I cannot reproduce this on archlinux with konsole, fish 2.2.0-188-g3f43050, the classic+git prompt, a custom right-prompt and no custom SIGWINCH handlers.

  2. faho commented on Aug 19, 2015

    @faho
    Member

    Also no issue with the example in #321 - `printf '1\n2\n$'.

  3. joesanford commented on Aug 24, 2015

    @joesanford
    Author

    Mac OS X 10.10.5. Was able to replicate with both iTerm2 and Terminal. fish 2.2.0. Prompts that have shown this are Pythonista and bira. 4 of us at my work can all replicate this (same environment).

    No custom functions, and it occurs when resizing window of the terminal.

  4. Determinant commented on Oct 30, 2015

    @Determinant

    Same issue here. It does not seem related to the OS X version, I tried on both 10.10.5 and 10.11. It occurs when resizing window of the terminal.

  5. faho commented on Oct 30, 2015

    @faho
    Member

    @Determinant, @joesanford: Can you try with current git master? It's possible this was already fixed since 2.2.0.

  6. Determinant commented on Oct 30, 2015

    @Determinant

    Sorry, but I'm using 2.2.0. The problem still exists.

    On Saturday, October 31, 2015, Fabian Homborg [email protected]
    wrote:

    @Determinant https://github.com/Determinant, @joesanford
    https://github.com/joesanford: Can you try with current git master?
    It's possible this was already fixed since 2.2.0.

    —
    Reply to this email directly or view it on GitHub
    #2320 (comment)
    .

    --- This information is automatically generated ---
    Welcome to My Blog : http://tedyin.com

    ted.sybil aka. ymfoi aka. Ted Yin

  7. faho commented on Oct 30, 2015

    @faho
    Member

    We know that you have this problem with 2.2.0, but what about newer versions (i.e. current git master, which isn't part of a release yet)?

  8. ridiculousfish commented on Oct 30, 2015

    @ridiculousfish
    Member

    I can reproduce on master.

    The resizing stuff is rather tricky, but zsh seems to do much better here. I think what's going on is that we're soft-wrapping from the previous line, and need to have a hard return there.

  9. tylerhjones commented on Feb 19, 2016

    @tylerhjones

    Is anyone else still receiving this problem?

  10. faho commented on Feb 19, 2016

    @faho
    Member

    I still can't reproduce - newest fish, newest konsole on archlinux.

  11. ixjlyons commented on Mar 15, 2016

    @ixjlyons

    I'm not sure about Github notifications when an issue is referenced from another, but I wanted to point out the duplicate issue I filed #2816 (sorry for the dup -- I searched but didn't see this one). I'm able to replicate this issue with all terminal emulators based on recent (gtk3) versions of vte.

    I filed a bug report against vte here, and one of the developers seemed to figure out what the problem was. See comment 4 specifically.

    I'd love to contribute to fish, and I have some C++ knowledge, but I'm still learning the basics of how shells work. I implemented the vte dev's suggestion here, but I have no idea whether or not this will cause side effects. Tests seem to pass, and I'm using it as my daily driver without issue so far.

  12. joesanford commented on Apr 11, 2016

    @joesanford
    Author

    @faho The problem still exists on master on Mac OS X 10.10 with iTerm2. Multiple users where I work can confirm as well with the same setup
    screen shot 2016-04-11 at 10 08 57 am

  13. faho commented on Apr 11, 2016

    @faho
    Member

    @joesanford: Can you try erasing __fish_winch_handler? Unfortunately this means you'd need to run functions -e __fish_winch_handler interactively as it is defined only after the first prompt event (in __fish_config_interactive.fish), but it should do for a simple test.

    The idea is that these terminals (iTerm2 and newer VTE) will reflow text themselves, so fish doing it just gets in the way. Or maybe their reflow doesn't work for our needs, let's see.

  14. 14 remaining items

  15. added a commit that references this issue on Aug 9, 2017
    09cb31a
  16. modified the milestones: fish-future, fish 2.7.0 on Aug 9, 2017
  17. c02y commented on Aug 15, 2017

    @c02y

    @faho It works good without fish_right_prompt.

  18. modified the milestones: fish-future, fish 2.7.0 on Sep 4, 2017
  19. truenicoco commented on Mar 9, 2018

    @truenicoco

    Experiencing similar issue here with Fedora 27, i3-gaps 4.14.1 and xfce4-terminal 0.8.6 (Xfce 4.12).

  20. V0idk commented on May 8, 2018

    @V0idk

    @faho so what's the solution? the pythonista.fish do not have the fish_right_prompt but has the same problem

  21. faho commented on May 8, 2018

    @faho
    Member

    It turns out the crashes in the test suite we've been getting with the previous attempts were because that sets $TERM to dumb. So we don't do this in dumb terminals, where it shouldn't have an effect anyway.

    @V0idk: Rebuild fish with e35d248.

  22. modified the milestones: fish-future, fish-3.0 on Sep 15, 2018
  23. locked as resolved and limited conversation to collaborators on Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions