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
Consider adding OSC 133 #5850
Comments
Also, I think it should be restricted in alt-screen? |
would just be a no-op in alt screen, wouldn't it? Pretty sure that should work automagically. |
Adds support for setting prompt marks with OSC 133 ; A ST. While there're other markers for prompt `FTCS_PROMPT` (`A` parameter) is likely the most widely used and useful one. Fixes alacritty#5850.
Adds support for setting prompt marks with OSC 133 ; A ST. While there're other markers for prompt `FTCS_PROMPT` (`A` parameter) is likely the most widely used and useful one. Fixes alacritty#5850.
Adds support for setting prompt marks with OSC 133 ; A ST. While there're other markers for prompt `FTCS_PROMPT` (`A` parameter) is likely the most widely used and useful one. Fixes alacritty#5850.
Adds support for setting prompt marks with OSC 133 ; A ST. While there're other markers for prompt `FTCS_PROMPT` (`A` parameter) is likely the most widely used and useful one. Fixes alacritty#5850.
I don't think that adding this escape sequence will provide any value due ability to implemented it yourself with bindings due to 586f982. I wouldn't close this issue out right, but I don't think this escape sequence will add anything our macro like bindings can't do. Especially given that the escape sequence is unclear an complicated. There's a part of the escape sequence talking about last prompt copy, but it's useless due to |
Curious, as a developer of an application/shell, how would this make my life easier better? Let's say I emit the correct starts and ends for commands run by the user. What actions would I be able to do with this? Do other applications look for these escapes? Would we track them for our own internal tracking of commands (seems wrong). When I've played with writing shells in the past, I've considered adding command tracking (even in parallel with The killer feature is probably "Jump to Last Command", which if I understand you correctly @kchibisov you think should be implementable with out existing bindings? What would that look like without this OSC? Hopefully I'm thinking along the right lines here. It's been a little while since I gave this much thought. |
it's only for the terminal itself.
|
I can’t tell at the moment, is that |
yeah, it's a special space char. |
Hello, looks like I tried @kchibisov 's solution (had to change some things to make it parseable) - { key: P, mods: Control|Shift, mode: ~Vi|~Search, action: ToggleViMode }
- { key: P, mods: Control|Shift, mode: ~Vi|~Search, action: SearchBackward }
- { key: P, mods: Control|Shift, mode: ~Vi|~Search, chars: "test" }
- { key: P, mods: Control|Shift, mode: Search, action: SearchConfirm } # errors if ~Vi|~Search but the I don't know what to try to get this feature at this point |
@halvabner you need master built to make it work. |
@kchibisov sorry, can you elaborate please? Are you suggesting I am not running a master branch build? I have |
if you're on arch, you need alacritty-git from aur. The instructions on how to build yourself are in INSTALL.md. |
@kchibisov and how do you specify OSC character? I tried
|
They are not part of the grid. Just use some unique character in your prompt, like some unicode variant of space or some arrow character you could have. Besides, TOML uses |
This allows some basic shell integration and the protocol seems like supported by some major modern terminals (kitty/iterm2).
Adding it should be relatively easy and shouldn't impact performance at all.
I'm not sure that adding all of them makes sense for us, but ability to just mark prompt should be fine.
The relevant spec could be found https://iterm2.com/documentation-escape-codes.html.
The text was updated successfully, but these errors were encountered: