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

Support semantic prompts (OSC 133) #1808

Open
1 task done
TheDaemoness opened this issue May 12, 2024 · 0 comments
Open
1 task done

Support semantic prompts (OSC 133) #1808

TheDaemoness opened this issue May 12, 2024 · 0 comments

Comments

@TheDaemoness
Copy link

What new feature should Elvish have?

There doesn't appear to be an option in edit for the elvish editor to automatically emit OSC 133 codes. These codes allow REPLs/shells to inform a terminal about the structure of their output, enabling features like those of the late Final Term or just wezterm.

This would be possible to implement oneself in rc.elv, except OSC escape codes emitted by the prompt are escaped (heh), which means OSC 133 B (the one that separates the prompt from user input) cannot be emitted at the end of the prompt. Emitting it at the end of edit:before-readline makes the prompt considered part of user input (at least by wezterm), which is unideal.

I'm not much of a Go person, but if there's maintainer interest in this feature, I could probably submit a PR for it.

Output of "elvish -version"

0.20.1+archlinux4

Code of Conduct

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

No branches or pull requests

1 participant