vscode: Terminal: the cli command entered duplicates in output

  • VSCode Version: 1.47.0
  • OS Version: MacOS 10.15.5

Steps to Reproduce:

  1. install zsh + oh-my-zsh with no plugins
  2. Run any bash command in VSCode terminal

Does this issue occur when all extensions are disabled?: Yes

Any cli command in the terminal goes first in the output when zsh+ohmyzsh is used. There is no such behavior with bash or with zsh in any other terminal.

Screenshot 2020-07-10 at 14 32 30

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

@Tyriar Oh well, ESC k <some_text> ESC \ is a custom sequence of screen to update the internal title of a running terminal in screen. This is a really bad one - it is not officially spec’ed anywhere and even more - it is incompatible to ECMA-35/48.

Not sure why zsh is sending it at all, maybe the TERM var wrongly contains some screen derivate?

@osenvosem Good to know, not sure what zsh is trying.

@jerch any idea what zsh is trying to do here? It’s sending back ls followed by ST (ESC ).

@Tyriar I’ve actually just found a solution, one needs to add `DISABLE_AUTO_TITLE=“true” to zsh config.

Thank you for helping. 🙂

Well that seems like a problem 😕, created https://github.com/microsoft/vscode/issues/102117