prompt color bleeding when ghostty(with zsh) window is resized #8934
-
Issue DescriptionI am using zsh shell with starship for designing my prompt. When the terminal(ghostty) window is resized in a way that makes the prompt longer than the window width, i.e., the prompt takes two lines to appear, some color bleeds as shown in the attached image. This doesn't necessarily happen on resizing but it also happens inside an already resized window when a new prompt is summoned. This doesn't happen with: zsh+kitty(or any shell in kitty), nushell+ghostty. It also happens with zsh+wezterm, it doesn't happen with any terminal emulator(ghostty, kitty or wezterm) when the shell is nushell. Expected BehaviorThe color should not bleed on the remaining space on the second prompt line like with kitty: Actual BehaviorThe color bleeds on the empty space on the second line of the prompt Reproduction Steps
Ghostty Logs
Ghostty Version
OS Version InformationNixOS 25.11 (Xantusia) x86_64 (Linux only) Display ServerWayland (Linux only) Desktop Environment/Window Managerniri 25.08 (Nixpkgs) Minimal Ghostty Configuration// no setting is needed, just having ghostty is enough, this is my config tho except keybindings:
gtk-single-instance = true;
font-family = "JetBrainsMono Nerd Font";
font-size = 18;
freetype-load-flags = ["hinting"];
background-opacity = 1;
window-decoration = "auto";
shell-integration = "detect";
bold-color = "bright";
command = lib.getExe pkgs.zsh;
theme = "Catppuccin Mocha"; Additional Relevant ConfigurationLink to my zsh shell configuration via home manager module on NixOS: https://gitlab.com/recluse0/dotfiles/-/blob/master/modules/home-manager/shells/zsh.nix I acknowledge that:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
looking at the discord thread I didn't see anyone suggest that you try |
Beta Was this translation helpful? Give feedback.
-
to repeat from the thread you can see that effect by wrapping a line of text with bg color https://discord.com/channels/1005603569187160125/1420973267476414526/1421188963921690795 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
This is working as intended, since this is how
xterm
also behaves given your reproduction.Please report the compatibility issue to other terminals. Or, if xterm confirms its a bug with them, we'll follow suit.