Skip to content

Prompt display error in many different terminals since upgrade to debian trixie and fish 4.0.2 #11749

Closed

Description

@Raptor039

fish --version : fish, version 4.0.2
OS : Debian GNU/Linux 13 (trixie)

Since upgrade from debian 12 bookworm to debian 13 trixie on many devices, i get issues with some terminal apps (like termux on android, Apache guacamole ssh, proxmox novnc).

When I'm connecting by ssh to those systems, i get the following in the prompt :

Type help for instructions on how to use fish
;special_key=1root@pve ~#

When I'm connecting by ssh with termux (android), i get :

Type help for instructions on how to use fish
root@pve ~# ;1m 

I saw a similar issue : #11609
I know the problem is not coming from fish but from terminal which don't correctly implement some new standard or protocol.

But the fact is it's really annoying as fish has became unusable.

Somebody proposed here to include an option in fish to fallback to old standard (as before v4.0) :
set fish_prompt_marking_enabled false
Is it something that could be implemented easily ? Because it would be a great workaround until all different terminals project have been updated (if they can or want) to adopt the new standards / protocols.

Thanks for your help.

Activity

  1. krobelus commented on Aug 21, 2025

    @krobelus
    Contributor
  2. modified the milestones: fish 4.1, fish 4.0.3 on Aug 21, 2025
  3. Raptor039 commented on Aug 21, 2025

    @Raptor039
    Author

    Hi @krobelus, about termux, I made a mistake sorry, it's not in it (it works in termux indeed) but in Termius.

    Proxmox side xterm.js is only available for LXC containers, not KVM VM except those with a serial socket but it's not working out of the box without further config.

    I'd be happy to have these options added; not adding them was clearly a mistake;
    though even if we add them now, I don't know if that can reach users in time; release cycles are somehow very long and it depends on other people.

    If we never bite the bullet of enabling these by default, these things will never be fixed.

    I understand your point of view. As a workaround, it should target the most effective and I belive the best to hotfix is at fish side (one change to fix them all).
    Btw in term of release cycle, guacamole is the worse here. If you need a fix right now, you need to build app yourself or wait months if not a year sadly.

  4. krobelus commented on Aug 23, 2025

    @krobelus
    Contributor
  5. Raptor039 commented on Aug 26, 2025

    @Raptor039
    Author

    Hi @krobelus thanks and good job for the bug reports!

    That's a useful skill though, for example in this case you could build
    fish from source to fix it immediately.. of course that doesn't scale

    I know how to build and sometimes it's very usefull yes. But the fact is it's just a boring task for an sysadmin to maintain multiple package out of tree at home without a setted up build chain.
    However, here as you seem to say, is there some branch of fish I can build to workaroud my issue? If it's the case, it would be great to know as I would do it by waiting all terminal would be fixed upstream.

  6. krobelus commented on Aug 26, 2025

    @krobelus
    Contributor
  7. krobelus commented on Aug 26, 2025

    @krobelus
    Contributor

    for a quick fix, try this (this applies to latest master; should be easy to backport to 4.0.2, grep for \b133\b)

    diff --git a/src/terminal.rs b/src/terminal.rs
    index 2a065ed293..470c25f739 100644
    --- a/src/terminal.rs
    +++ b/src/terminal.rs
    @@ -174,9 +174,9 @@
                 ModifyOtherKeysEnable => write(self, b"\x1b[>4;1m"),
                 ModifyOtherKeysDisable => write(self, b"\x1b[>4;0m"),
                 Osc0WindowTitle(title) => osc_0_window_title(self, title),
    -            Osc133PromptStart => write(self, OSC_133_PROMPT_START),
    -            Osc133CommandStart(command) => osc_133_command_start(self, command),
    -            Osc133CommandFinished(s) => osc_133_command_finished(self, s),
    +            Osc133PromptStart => true,
    +            Osc133CommandStart(command) => true,
    +            Osc133CommandFinished(s) => true,
                 QueryCursorPosition => write(self, b"\x1b[6n"),
                 ScrollForward(lines) => scroll_forward(self, lines),
                 DecsetShowCursor => write(self, b"\x1b[?25h"),
  8. added a commit that references this issue on Aug 27, 2025
  9. modified the milestones: fish 4.0.3, fish 4.1 on Aug 27, 2025
  10. krobelus commented on Aug 27, 2025

    @krobelus
    Contributor

    Pushed 6900b89 (Add mark-prompt feature flag, 2025-08-27) to Integration_4.0.3

    To use it, run this once, and restart fish:
    
        set -Ua fish_features no-mark-prompt
    

    leaving this open in case we want to have it in 4.1 too

  11. Raptor039 commented on Sep 1, 2025

    @Raptor039
    Author

    Hi @krobelus, just try to backport your commit 6900b89 to debian sources package (4.0.2) with no success. The package build but the feature no-mark-prompt doesn't seem to work as my issue persist with it.

    Is the commit 6900b89 is self sufficiant or I also need the fix of terminal.rs. Besides this file (terminal.rs) is not present in 4.0.2 sources.

    I really like to backport your hotfix to debian 13 source package to keep fish as stable as possible and upgrade from debian when this feature will be package.
    Thanks for your help.

  12. Raptor039 commented on Sep 1, 2025

    @Raptor039
    Author

    Ok so I was wrong, fix seems to be applied well but for Guacamole or Termius for instance, if I want it to work, I need this features disabled :
    no-mark-prompt no-keyboard-protocols

  13. krobelus commented on Sep 1, 2025

    @krobelus
    Contributor
  14. Raptor039 commented on Sep 1, 2025

    @Raptor039
    Author

    @krobelus Yes it works well with your test.
    It just the no-keyboard-protocols which was missing in my case. I need both of them disable to have a working fish shell with all my terminal apps (termius, guacamole etc).
    So for me it's all good. Thanks for your works and your support. Really appreciate.

  15. Raptor039 commented on Sep 2, 2025

    @Raptor039
    Author

    Hi,

    For information, Termius has been fixed today :

    Screenshot_20250902-100119.png

    Thanks for your hard work again @krobelus 🤗

  16. added 2 commits that reference this issue on Sep 23, 2025
    7214c61
    eab14b7
  17. added a commit that references this issue on Sep 24, 2025
    a6f975a
  18. locked as resolved and limited conversation to collaborators on Sep 28, 2026
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions