starship / starship

☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
https://starship.rs
ISC License
45.13k stars 1.97k forks source link

Enable Terminal Integration for Windows Terminal #5204

Open giggio opened 1 year ago

giggio commented 1 year ago

Feature Request

Is your feature request related to a problem? Please describe.

Enable Terminal Integration when running under Windows Terminal. See: https://learn.microsoft.com/en-us/windows/terminal/tutorials/shell-integration

Describe the solution you'd like

Write to the prompt the expected characters to get terminal integration to work.

Describe alternatives you've considered

This is not strictly necessary, I have made it work with StarShip directly on my PoSh profile:

https://github.com/giggio/poshfiles/blob/e1b3f097fd77fd32652587691e3121cdc43297c6/Profile/Prompt.ps1#LL33C7-L33C7

Still, would be a nice addition.

Right now this is a preview feature, so it could be a good idea to wait until it stabilizes.

Daydreamer-riri commented 2 months ago

The feature is now stabilized, thanks to your configuration!

giggio commented 1 month ago

@Daydreamer-riri I tried removing my configuration, and only parts of the terminal integration work, not all of it. Specifically I noticed that when a command errors (exit code != 0, for example) we are not getting the proper signaling. So, this still needs work.