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

Open
opened 2026-01-31 04:00:45 +00:00 by claunia · 0 comments
Owner

Originally created by @xPaw on GitHub (Jun 3, 2021).

Originally assigned to: @PankajBhojwani on GitHub.

Windows Terminal version (or Windows build number)

10.0.19043.0, 1.8.1444.0

Other Software

No response

Steps to reproduce

  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)

The history buffer must be full for this to trigger.

See attached video:

https://user-images.githubusercontent.com/613331/120690411-d9f48880-c4ad-11eb-8f84-e930b5783dfc.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 (Jun 3, 2021). Originally assigned to: @PankajBhojwani on GitHub. ### Windows Terminal version (or Windows build number) 10.0.19043.0, 1.8.1444.0 ### Other Software _No response_ ### Steps to reproduce 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) ``` The history buffer must be full for this to trigger. See attached video: https://user-images.githubusercontent.com/613331/120690411-d9f48880-c4ad-11eb-8f84-e930b5783dfc.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#14095