tide icon indicating copy to clipboard operation
tide copied to clipboard

Last character of right prompt truncated in ghostty

Open Crocmagnon opened this issue 1 year ago • 4 comments

Describe the bug

The last character of the right prompt is truncated in ghostty. This only affects the right prompt and not the terminal output (see screenshot: "hello" is correctly printed).

Steps to reproduce

  1. Open Ghostty
  2. Trigger anything on the right prompt (python venv, go version, duration, signal, ...)

Screenshots

image

Environment

Output of tide bug-report:

fish version: 3.7.1
tide version: 6.1.1
term: xterm-ghostty
os: macOS 15.2 (24C101)
terminal emulator: Ghostty
fish startup: 39.22 millis
fisher plugins: jorgebucaran/fisher fisherman/z franciscolourenco/done jorgebucaran/autopair.fish patrickf1/fzf.fish ilancosman/tide@v6 catppuccin/fish

Crocmagnon avatar Jan 05 '25 23:01 Crocmagnon

Looks like the issue has already been raised to Ghostty: https://github.com/ghostty-org/ghostty/issues/884

Crocmagnon avatar Jan 05 '25 23:01 Crocmagnon

Workaround:

set tide_right_prompt_suffix " "

Crocmagnon avatar Jan 05 '25 23:01 Crocmagnon

UPDATE

After a bit of searching, I found out that the problem has been solved in the 4.0 version of fish:

  • https://github.com/ghostty-org/ghostty/issues/2742#issuecomment-2571398046
  • link to the commit

ORIGINAL COMMENT

This happens also in other terminals; this is a screenshot from Windows Terminal open in a WSL shell:

Image

From the linked thread on Ghostty, it seems like the problem should be fixed in Fish or Tide, since it could manifest in multiple terminals depending on how they handle writing a character in the last column: https://github.com/ghostty-org/ghostty/issues/884#issuecomment-1813185031

bekanui avatar Mar 26 '25 14:03 bekanui