Skip to content

UPSTREAM PR #17468: Add OSC 133 P (k=) markers for semantic prompts#35

Open
loci-dev wants to merge 8 commits intomainfrom
loci/pr-17468-fix-prompts
Open

UPSTREAM PR #17468: Add OSC 133 P (k=) markers for semantic prompts#35
loci-dev wants to merge 8 commits intomainfrom
loci/pr-17468-fix-prompts

Conversation

@loci-dev
Copy link

@loci-dev loci-dev commented Feb 2, 2026

Note

Source pull request: nushell/nushell#17468

Description

This PR adds OSC 133;P prompt kind markers (k=i, k=s, k=r) to properly distinguish between different prompt types in semantic shell integration.

Release notes summary - What our users need to know

Terminal emulators with semantic prompt support (like Ghostty) can now properly distinguish between primary prompts, right prompts, and continuation prompts. This improves prompt navigation and other shell integration features.

Tasks after submitting

@loci-dev loci-dev force-pushed the main branch 4 times, most recently from 9959a09 to e8b3494 Compare February 2, 2026 13:30
- Add SemanticPromptMode enum for better encapsulation
- Refactor prompt rendering to use helper methods, eliminating duplication
- Add wrap_prompt_indicator to try and get it sending the right escapes
@loci-dev loci-dev force-pushed the main branch 6 times, most recently from d9bae9e to 068b2bc Compare February 3, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments