WSL Terminal Line Endings (the "exact wrap" bug) #4300

Open
opened 2026-01-30 23:43:22 +00:00 by claunia · 0 comments
Owner

Originally created by @aeiplatform on GitHub (Oct 6, 2019).

Put into terminal and then increase the window size:
printf "%*s\n" "$(tput cols)" "" | tr " " "X"

Line endings acts like they disappeared if the string length matches exactly the window columns.
The terminal has different behavior for columns +- 1.
The behavior does not depend on the type of shell.

Originally created by @aeiplatform on GitHub (Oct 6, 2019). Put into terminal and then increase the window size: `printf "%*s\n" "$(tput cols)" "" | tr " " "X"` Line endings acts like they disappeared if the string length matches exactly the window columns. The terminal has different behavior for columns +- 1. The behavior does not depend on the type of shell.
claunia added the Product-ConhostArea-OutputIssue-BugIn-PRNeeds-Tag-FixPriority-2 labels 2026-01-30 23:43:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4300