Skip to content
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

Pure prompt contains newline in VSCode terminal #341

Closed
MrAru opened this issue Jan 17, 2024 · 3 comments
Closed

Pure prompt contains newline in VSCode terminal #341

MrAru opened this issue Jan 17, 2024 · 3 comments
Labels
🚀 enhancement performance, UX or maintainability

Comments

@MrAru
Copy link

MrAru commented Jan 17, 2024

I'm not sure if this issue should be reported to pure or VSCode. As the title suggests, when using the Pure theme for fish shell in VSCode, it seems that there is a newline character after the prompt, separating the user input from the prompt content. This issue does not occur when using the original fish shell without any theme. Even if I set pure_enable_single_line_prompt to true it still occurs. Please refer to the screenshot below. Any suggestion could be helpful, thanks in advance.

pure theme

屏幕截图 2024-01-17 122304

pure theme, set pure_enable_single_line_prompt true

屏幕截图 2024-01-17 122843

original fish theme

屏幕截图 2024-01-17 123114

Env

Pure

4.8.3

Fish

fish, version 3.3.1

OS/distribution

LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Rocky
Description: Rocky Linux release 8.7 (Green Obsidian)
Release: 8.7
Codename: GreenObsidian

@edouard-lopez edouard-lopez added the 🐛 bug something that doesn't works as expected label Jan 17, 2024
@edouard-lopez
Copy link
Member

edouard-lopez commented Jan 17, 2024

Got something similar behavior as you when I'm not using tmux , but not when using other terminals

Terminal Behavior Screenshot Comment
VSC (without Tmux) image input on different line
VSCode with Tmux image input on line
GNOME Terminal
Version 3.49.92 for GNOME 45
image input on line
Hyper 3.4.1 image input on line
kitty 0.26.5 image input on line

Conclusion

I would say it's a difference in VSCode as multiple terminal applications render correctly.

@edouard-lopez edouard-lopez added 🚀 enhancement performance, UX or maintainability and removed 🐛 bug something that doesn't works as expected labels Jan 17, 2024
@edouard-lopez
Copy link
Member

There is an issue on vcsode repo microsoft/vscode#187185 and a solution on IlanCosman/tide#433. The issue comes from "terminal.integrated.shellIntegration.enabled being enabled.

  1. Disable this feature,
  2. Kill the VSCode terminal (trash/bin icon on the top right of the panel)
  3. Open terminal again

@MrAru
Copy link
Author

MrAru commented Jan 17, 2024

@edouard-lopez Thanks for your help and this really fixed my issue! It seems that VSC does some magic with its shell integration procedure. I'm happy to close this issue now and enjoy this awesome theme 😄

@MrAru MrAru closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement performance, UX or maintainability
Projects
None yet
Development

No branches or pull requests

2 participants