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

Closed
opened 2026-01-31 04:00:47 +00:00 by claunia · 2 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.
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

:tada:This issue was addressed in #10749, which has now been successfully released as Windows Terminal Preview v1.10.2383.0.🎉

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10749, which has now been successfully released as `Windows Terminal Preview v1.10.2383.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.10.2383.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Aug 31, 2021):

:tada:This issue was addressed in #10749, which has now been successfully released as Windows Terminal Preview v1.11.2421.0.🎉

Handy links:

@ghost commented on GitHub (Aug 31, 2021): :tada:This issue was addressed in #10749, which has now been successfully released as `Windows Terminal Preview v1.11.2421.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.11.2421.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14098