warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.2k stars 333 forks source link

PS1 prompt rendered poorly in nerd fonts #4348

Open jimcornmell opened 4 months ago

jimcornmell commented 4 months ago

Discord username (optional)

No response

Describe the bug

Prompt elements misaligned and gaps

To reproduce

Set prompt to shell PS1 prompt.

Font is set to "UbuntuMono Nerd Font Mono" with line height of 1.2 (Although I've tried other fonts too. SauceCodePro, RobotoMono, JetBrainsMono, DroidSans, DejaVuSansM, Consolas, all nerd fonts).

Expected behavior

Correct, clean render.

Screenshots

Even using default Hack font it does not render correctly. Screenshot_20240226_134216-1

Same font in other terminals (kitty) work fine, see following image. Screenshot_20240226_134417

Operating system

Linux

Operating system and version

Kubuntu 23.10

Shell Version

zsh 5.9

Current Warp version

v0.2024.02.20.08.01.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

joaberg commented 4 months ago

I see this also, using Meslo NF
image This is from other terminals: image