Unable to select text correctly while new lines are printed and history buffer is full #18983

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

Originally created by @xPaw on GitHub (Nov 29, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22621.819

Other Software

No response

Steps to reproduce

See #10319 for the previous report, it was supposedly fixed in v1.11, but I still see this behaviour.

  1. Set "historySize": 100, for the profile.
  2. Run a script that echoes new lines
  3. Try to select text

Example script to test the issue:

Do {
	echo $(Get-Random)
	sleep 0.1
}
while ($true)

https://user-images.githubusercontent.com/613331/204636943-b8f8f4b5-e6da-4fdb-88cd-b59bc8e8ad17.mp4

Expected Behavior

Correctly select text. It works when the history buffer is full.

Actual Behavior

The selection scrolls away from you, selecting different text.

Originally created by @xPaw on GitHub (Nov 29, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.15.2875.0 ### Windows build number 10.0.22621.819 ### Other Software _No response_ ### Steps to reproduce See #10319 for the previous report, it was supposedly fixed in v1.11, but I still see this behaviour. 1. Set `"historySize": 100,` for the profile. 2. Run a script that echoes new lines 3. Try to select text Example script to test the issue: ```powershell Do { echo $(Get-Random) sleep 0.1 } while ($true) ``` https://user-images.githubusercontent.com/613331/204636943-b8f8f4b5-e6da-4fdb-88cd-b59bc8e8ad17.mp4 ### Expected Behavior Correctly select text. It works when the history buffer is full. ### Actual Behavior The selection scrolls away from you, selecting different text.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18983