Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to scroll upwards #17846

Closed
b1xcy opened this issue Sep 2, 2024 · 7 comments
Closed

[BUG] Unable to scroll upwards #17846

b1xcy opened this issue Sep 2, 2024 · 7 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@b1xcy
Copy link

b1xcy commented Sep 2, 2024

Windows Terminal version

1.21.2361.0

Windows build number

10.0.22631.0

Other Software

No response

Steps to reproduce

After entering ipconfig in the terminal (more than this command can cause bugs), it is not possible to scroll up.

After reinstalling, it is possible to scroll in PowerShell, but cmd still cannot scroll

gif

Expected Behavior

No response

Actual Behavior

Unable to scroll upwards, the side scrollbar also fails

@b1xcy b1xcy added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Sep 2, 2024
@b1xcy
Copy link
Author

b1xcy commented Sep 3, 2024

here is my settings.json

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        },
        {
            "command": "paste",
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "command": "find",
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878",
            "keys": "alt+shift+d"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "language": "zh-Hans",
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "backgroundImage": null,
            "backgroundImageOpacity": 0.5,
            "elevate": false,
            "font": 
            {
                "face": "JetBrainsMono Nerd Font Mono"
            },
            "intenseTextStyle": "all"
        },
        "list": 
        [
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "\u547d\u4ee4\u63d0\u793a\u7b26"
            },
            {
                "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            }
        ]
    },
    "schemes": [],
    "themes": []
}

@zadjii-msft
Copy link
Member

Well that sure is weird, and something I can't repro locally.

  • Did this happen on 1.20/?
  • Do other commands that might cause scrolling (something like a dir c:\windows\system32) work as expected?
  • What is the output of chcp on your machine?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Sep 3, 2024
@b1xcy
Copy link
Author

b1xcy commented Sep 3, 2024

  • it happen on 1.20
  • almost all commands cause inability to scroll
  • the output of chcp is Active code page: 65001(I have tried switching to 936 or 437, but neither has worked)
    It's interesting that after I enter chcp, I can scroll a little distance
    But this can lead to some display issues

gif

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 3, 2024
@lhecker
Copy link
Member

lhecker commented Sep 3, 2024

The fact that chcp behaves differently makes me believe that this must be a VtEngine bug, but after going through the conhost settings I could not find anything that may cause this.

Just to be sure, @b1xcy can you try to install the canary version from here? https://aka.ms/terminal-canary-installer
It should pick up your Windows Terminal settings automatically. Please let us know if the issue still happens then! (If it does, please feel free to uninstall it again.)

@b1xcy
Copy link
Author

b1xcy commented Sep 3, 2024

The Canary version still has this error(I hope my Chinese interface won't cause any inconvenience to you)
Only command prompt can generate such an error, neither PowerShell nor Windows PowerShell
Here is the Canary version settings.json

{
    "$help": "https://aka.ms/terminal-documentation",
    "$schema": "https://raw.githubusercontent.com/microsoft/terminal/main/doc/cascadia/profiles.schema.json",
    "actions": 
    [
        {
            "command": 
            {
                "action": "copy",
                "singleLine": false
            },
            "id": "User.copy.644BA8F2"
        },
        {
            "command": "paste",
            "id": "User.paste"
        },
        {
            "command": 
            {
                "action": "splitPane",
                "split": "auto",
                "splitMode": "duplicate"
            },
            "id": "User.splitPane.A6751878"
        },
        {
            "command": "find",
            "id": "User.find"
        }
    ],
    "copyFormatting": "none",
    "copyOnSelect": false,
    "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "keybindings": 
    [
        {
            "id": "User.copy.644BA8F2",
            "keys": "ctrl+c"
        },
        {
            "id": "User.find",
            "keys": "ctrl+shift+f"
        },
        {
            "id": "User.paste",
            "keys": "ctrl+v"
        },
        {
            "id": "User.splitPane.A6751878",
            "keys": "alt+shift+d"
        }
    ],
    "language": "zh-Hans",
    "newTabMenu": 
    [
        {
            "type": "remainingProfiles"
        }
    ],
    "profiles": 
    {
        "defaults": 
        {
            "backgroundImage": null,
            "backgroundImageOpacity": 0.5,
            "font": 
            {
                "face": "JetBrainsMono Nerd Font Mono"
            },
            "intenseTextStyle": "all"
        },
        "list": 
        [
            {
                "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
                "hidden": false,
                "name": "PowerShell",
                "source": "Windows.Terminal.PowershellCore"
            },
            {
                "commandline": "%SystemRoot%\\System32\\cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "\u547d\u4ee4\u63d0\u793a\u7b26"
            },
            {
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            },
            {
                "guid": "{41edcfdd-5cf5-5c30-a70b-805f416f460d}",
                "hidden": false,
                "name": "Developer Command Prompt for VS 2019",
                "source": "Windows.Terminal.VisualStudio"
            },
            {
                "guid": "{f4ab5be0-545e-5b48-af79-d5a9f4fe008f}",
                "hidden": false,
                "name": "Developer PowerShell for VS 2019",
                "source": "Windows.Terminal.VisualStudio"
            }
        ]
    },
    "schemes": [],
    "themes": []
}

gif

@zadjii-msft
Copy link
Member

zadjii-msft commented Sep 3, 2024

Is there anything in

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
  • HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

?


previously:

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Sep 3, 2024
@b1xcy
Copy link
Author

b1xcy commented Sep 3, 2024

Is there anything in

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
  • HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

?

previously:

Thank you for your answer. I found that ansicon was running extra in HKEYTERENTVNet\Software\Microsoft\Command Processor\AutoRun.
This program caused scrolling failure.

@b1xcy b1xcy closed this as completed Sep 3, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

3 participants