-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long prompt text with shell integration causes "ghost" text display in the VSCode bash terminal #215617
Comments
Yes, seeing similar, I see this occurring with Git Bash 2.45.0, and only happening within VSCode:
Version: 1.90.1 (user setup) |
I think it is related, as it has similar effects and symptoms I'm using oh-my -posh with "rpromt" (text that appears after the prompt) It works in windows terminal, as well if I turn off shell integrations: But with shell integration the whole rprompt is messed up Version: 1.90.1 (user setup) |
I have same problem. I also using oh-my-posh Version: 1.90.1 (user setup) |
@Hayabusa58 @shlomi-borovitz-greenroad for oh-my-posh see #211922 |
Fixed for me |
Updated VSCode to v1.90.2, and I got fixed. Thanks! |
v1.90.2 does not fix the issue in Bash terminals. |
Type: Bug
When
$PS1
is enough long, and when shell integration is enabled, the bash terminal in VSCode sometimes gets weird text before each prompt.Example:
But you would prefer screenshot:
The reason I call them ghosts is because they can be purified by vertical resizing of the terminal:
Notes:
$PS1
when encountered this issue is\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1 " (%s) \[\033[1;34m\]$(gitGetUserConfigs)"`\[\033[0m\]\n$
. This generates prompt such asuser@host MINGW64 /c/path/to/my/supercalifragilisticexpialidocious/repo (main =) Phroneris <[email protected]> [local]
and it sometimes gets enough long to cause this issue.$PS1
always has additional\[\]
to both ends; this addition occurs only in the VSCode terminal with shell integration enabled.VS Code version: Code 1.90.1 (611f9bf, 2024-06-11T21:01:24.262Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: