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

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

@zadjii-msft commented on GitHub (Jan 5, 2023):

It's like, the viewport is staying at the same place relative to the first-in-order of the selection anchors, but the second anchor is moving... down? Like, it's in the same buffer-relative position.

Almost as if the first one is being adjusted as lines scroll off, but not the second.

@zadjii-msft commented on GitHub (Jan 5, 2023): It's like, the viewport is staying at the same place relative to the first-in-order of the selection anchors, but the second anchor is moving... down? Like, it's in the same buffer-relative position. Almost as if the first one is being adjusted as lines scroll off, but not the second.
Author
Owner

@ghost commented on GitHub (Jan 24, 2023):

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

Handy links:

@ghost commented on GitHub (Jan 24, 2023): :tada:This issue was addressed in #14636, which has now been successfully released as `Windows Terminal Preview v1.17.1023`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.17.1023) * [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#18986