ansicon icon indicating copy to clipboard operation
ansicon copied to clipboard

Can't scroll Vscode terminal

Open DanieleNardi opened this issue 1 year ago • 1 comments

Hello, I'm trying to use ansicon into Vscode terminal, in order to fix color issues with git bash. So far so good, color issue has been solved, BUT now the terminal is not scrollable anymore.

How to replicate the issue: in your Vscode workspace, add the following snippet:

"terminal.integrated.defaultProfile.windows": "Git Bash",
  "terminal.integrated.profiles.windows": {
    "Git Bash": {
      "source": "Git Bash",
      "path": "C:\\Program Files\\ANSICON\\x64\\ansicon.exe",
      "args": ["C:\\Program Files\\Git\\bin\\bash.exe","--login","-i"],
      "color": "terminal.ansiRed",
      "icon": "terminal-bash",
      "overrideName": true				
    }
  }

Then open a new terminal and launch a verbose command, like "ls -l" and you'll see that you can't scroll up and down to view the whole command output.

If I remove the "args" line, so referring just ansicon, the issue persists. I tried to add "terminal.integrated.scrollback": 1000, but it doesn't solve the problem. Also, the "reset" command doesn't solve the problem.

DanieleNardi avatar Aug 12 '24 08:08 DanieleNardi

Hmm, using VSCodium and directly running Git Bash, I see no problems with color.

image

However, I do confirm the scrolling issue, which also occurs in Windows Terminal (so probably an issue with ConPTY). Not sure when I'll look at it...

adoxa avatar Aug 14 '24 06:08 adoxa