Skip to content
Discussion options

You must be logged in to vote

I'd bet this isn't really a backend difference, and that X11 just hands you more chances to hit it.

Bash redraws on SIGWINCH through readline, and readline tracks the cursor itself rather than asking the terminal where it is. Ghostty rewraps soft-wrapped text on resize by default, Screen.ResizeOptions has reflow: bool = true, and it does fix up its own cursor through the reflow. So after the narrow-to-wide drag the terminal's cursor is where it should be, but readline still believes the prompt is sitting on the second row of a wrapped line, and its redraw moves the real cursor back to match that stale belief. That's your cursor landing partway through the prompt, and the duplicated fragme…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@toppk
Comment options

Answer selected by toppk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants