-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 OSC 9 or OSC 777;notify #1474
Comments
It would be helpful if you pointed to some document describing what |
https://chromium.googlesource.com/apps/libapps/+/master/hterm/doc/ControlSequences.md#OSC According to that document, iTerm2 supports OSC 9 and urxvt supports OSC 777. I also read in the vte bug that Terminator supports OSC 777;notify. |
OSC 777 seems like a urxvt specific "random command to terminal emulator for extension plugins" thing. So I am not going to implement that. OSC 9 seems more sensible. How is the notification supposed to be encoded? as UTF-8 text? @gnachman since this scheme comes from iTerm2 could you comment? Are there any facilites for setting subtitles? Icons? Is it allowed for users to turn this off at a terminal level? Is there any detection mechanism? Is the protocol extensible in some way? |
It's in the session's encoding, which is UTF-8 for most people. No subtitles or icons. There is a per-profile preference to disable it. This is a really old control sequence dating to before my stewardship of iTerm; if you're going to build something new, it should be more powerful or at least have room for extension in the future. |
Let's work out a specification (terminal-wg specifications 13) first. |
I'm going to close this issue. If an when a spec is worked out, I will |
Since, there is no movement in terminal-wg, I went ahead and implemented the OSC 99 protocol I proposed there, with some modifications based on feedback. ANd I also added support to kitty for OSC 9 for backwards compat. THe new protocol is documented in the kitty protocol extensions page. https://github.com/kovidgoyal/kitty/blob/master/docs/protocol-extensions.rst#desktop-notifications If any one has any useful feedback on the protocol (modulo bike shedding about escape code design) feel free to comment. |
It is useful over SSH. It was bikeshedded to death in https://bugzilla.gnome.org/show_bug.cgi?id=711059 due to excessive focus on detection of command completion, but I think the feature is good.
The text was updated successfully, but these errors were encountered: