-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
add support for win32-input-mode #2770
Comments
interesting, thanks for bringing this to my attention! |
Nice to hear that! If so, it's probably worth mentioning some other TUI UX enriching techniques:
|
i haven't looked at this yet, but clipboard/desktop etc. seems better handled by the terminal emulator itself? i definitely don't want to go talking to desktop notification APIs, i think.
i'll take a look at this
same as 1 above
i'd considered this and it too seems to be a TE thing, no? |
OSC52 and far2l extensions are supported in at least one TUI framework:
TE should support it too, of course. But the app (or is framework) also should. |
looking at it, i see what you mean. it's not relevant to me necessarily, but i ought maybe expose it to the app. |
notcurses already passes escape sequences that it does not implement onwards to the application and I have implemented OSC52 and bracketed paste in my notcurses application with minimal effort even without any help from notcurses. I'm not sure I see the value of adding clipboard support directly into notcurses itself. What would the API look like and how would it fit into the current input processing model? I assume it would be impossible to implement either clipboard variant without having some sort of (likely unbounded) input buffering inside notcurses. I'm not sure that's a nice way to go. |
kitty's enhanced keyboard protocol is not the only existing enhanced keyboard protocol supported by terminals. There also exist the other one, called win32-input-mode.
Protocol spec:
https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md
Reference implementation on the terminal side:
wez/wezterm#1509
Reference implementation on the console app side:
elfmz/far2l#1581
Reference implementation on the TUI framework side:
magiblot/tvision@5c017a8
NB! Windows Terminal's implementation is buggy and needs a special workaround for handling mouse events properly. Reference implementations of such workaround:
elfmz/far2l#2085
magiblot/tvision@ae1a685
The text was updated successfully, but these errors were encountered: