Skip to content

Scrollbar is not showing "marks" until first-scroll-event happens if the profile has shell-integration #19104

Open
@wadabum

Description

@wadabum

Windows Terminal version

1.22.11141.0 + 1.23.11752.0 (preview)

Windows build number

10.0.19045.0

Other Software

cmd/powershell5/powershell7/bash WITH shell-integration configured

Steps to reproduce

have "autoMarkPrompts": true,
have "showMarksOnScrollbar": true,
have "scrollbarState": "always", (not relevant, problem exists in all states here!)
have the profile correctly configured as detailed on https://github.com/MicrosoftDocs/terminal/blob/main/TerminalDocs/tutorials/shell-integration.md
have the launch-size configured to not cause any scroll-events on startup

Expected Behavior

a scrollbar mark to show after opening a new tab and pressing enter once

Note that this does work correctly if the shell used does NOT emit shell-integration tags! (so when the terminals self inserted enter is the only tag)

Actual Behavior

marks do not show up until "the end of the screen" is reached (what forces a scroll)

Notable: manually forcing the redraw (by using the mousewheel) does make all the marks from the past show up
(and then it again wont work until end-of-screen is reached/reforced)
Interestingly pageUp/down or "clicking the arrows on the scrollbar" do NOT make it work, only the mousewheel

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Impact-VisualIt look bad.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions