adoxa / ansicon

Process ANSI escape sequences for Windows console programs.
http://ansicon.adoxa.vze.com/
Other
1.24k stars 130 forks source link

Can't scroll Vscode terminal #140

Open DanieleNardi opened 2 months ago

DanieleNardi commented 2 months ago

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.

adoxa commented 2 months ago

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...