Open coolemur opened 5 months ago
+1
I received the same error message, but only if I use screen (4.9.0-1) in vscode (1.88.1). If I use screen in another termina GUI it does not happen. If I use without screen, or with tmux, it does not happen. I removed my complete .screenrc file and the behaviour is the same. 🤷♀️
It even dumps strange characters as well. Overall experience:
$ gh copilot explain tmux
^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\
Welcome to GitHub Copilot in the CLI!
version 1.0.1 (2024-03-22)
I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency
^[[20;1R^[[20;1R^[[20;1RExplanation:
tmux is a terminal multiplexer that allows you to create and manage multiple terminal sessions within a single window. It provides features such as splitting the window into panes,
detaching and reattaching sessions, and running commands in the background.
^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\^[]11;rgb:f8f8/f8f8/f8f8^[\(.venv) user0@machine (main) ~/Repos >
$ 1R11;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f81R1R1R11;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f811;rgb:f8f8/f8f8/f8f8
I'm getting this error too only in Zed's terminal (using fish).
When I run the same command outside zed (using kitty + fish), this error does not happen.
Check for existing issues
Describe the bug / provide steps to reproduce it
Getting error
Error: could not prompt: unexpected escape sequence from terminal: ['\x1b' ']']
when executing commandgh copilot suggest "create a directory"
Steps to reproduce:
install 'gh' using 'brew install gh' https://cli.github.com
install Copilot plugin https://docs.github.com/en/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli#installing-copilot-in-the-cli
run command
gh copilot suggest "create a directory"
in Zed terminalEnvironment
macOS: 14.4 (23E214)
Terminal: xterm-256color -zsh
Tried same steps in Mac native terminal & in iterm2 terminal - using same xterm-256color -zsh - that worked. It only fails in Zed terminal.
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response