ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.91k stars 458 forks source link

Unknow code In Command line #1036

Closed yinghaoyu closed 10 months ago

yinghaoyu commented 11 months ago

Version confirmation

Following prerequisites

Not a user config issue

Neovim version

nvim v0.9.4

Operating system/version

WSL2-Ubuntu20.04

Terminal name/version

Windows Terminal

$TERM environment variable

No response

Branch info

main (Default/Latest)

Fetch Preferences

SSH (use_ssh = true)

How to reproduce the issue

Ctrl + z to sleep nvim, then I had taken fg to weak up, It shows unknow code like ?61;6;7;22;23;24;28;32;42c in nvim command line. 微信截图_20231025101206

Expected behavior

It shouldn't happend.

Actual behavior

No response

Additional information

No response

ayamir commented 11 months ago

Can't repro.

https://github.com/ayamir/nvimdots/assets/61657399/1b18e3a3-a1f5-4b22-bc85-0e2104140a09

yinghaoyu commented 11 months ago

I had reproduced it on two different hosts.

https://github.com/ayamir/nvimdots/assets/42765754/fa63e447-3d1b-4622-9c59-30c77a89c1f6

Jint-lzxy commented 11 months ago

Hmm, this might be related to your installed plugins (e.g., one of them mistakenly emitted ANSI color codes to colorize your prompt). Looks like you are using zsh, can you reproduce this with zsh's "factory defaults"?

env -u PS1 zsh --no-rcs --no-globalrcs --interactive
yinghaoyu commented 11 months ago

It also appears in bash.

Jint-lzxy commented 11 months ago

It also appears in bash.

Do you mean you can reproduce this using both zsh and bash (with factory defaults)?

yinghaoyu commented 11 months ago

Yeah

Jint-lzxy commented 11 months ago

Hmm this is a bit weird since none of us can reproduce this, maybe u could try out a different emulator or just use Neovim's built-in terminal (via toggleterm)?

yinghaoyu commented 10 months ago

Hmm this is a bit weird since none of us can reproduce this, maybe u could try out a different emulator or just use Neovim's built-in terminal (via toggleterm)?

We could't fix it, so we avoid it. Hahahaha.

CharlesChiuGit commented 10 months ago

https://github.com/wez/wezterm/issues/4167

https://github.com/microsoft/terminal/issues/15693 -> this explains why.

https://stackoverflow.com/questions/77338019/tmux-starts-up-with-some-gibberish-in-the-prompt

It's not a nvim config issue. I think the quickest solution for u is to roll-back to windows terminal v1.17.

yinghaoyu commented 10 months ago

wez/wezterm#4167

microsoft/terminal#15693 -> this explains why.

https://stackoverflow.com/questions/77338019/tmux-starts-up-with-some-gibberish-in-the-prompt

It's not a nvim config issue. I think the quickest solution for u is to roll-back to windows terminal v1.17.

orz

CharlesChiuGit commented 10 months ago

@yinghaoyu so is it good to close the issue?

yinghaoyu commented 10 months ago

Let it go.