-
Notifications
You must be signed in to change notification settings - Fork 1
FYI/RFC: Add quirks to fix behavior of <C-j>, <C-?> and ZelliJ #1
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
base: main
Are you sure you want to change the base?
Conversation
|
First, thanks for the PR! I'll take a look shortly (I'm with a lot of work) |
|
integration was straight forward. i do have my own representation of mouse and key events. so it came down to mapping onto these. i'm running my kraken tui with termlib at the moment without issues. but this PR is really only meant as an FYI. not meant to be merged like this. having the global switches is obviously not ideal. but i didn't want to invest too much time before checking with you. because i'm probably missing some info. never really looked much into modern term protocols or anything like that.. 🙈 this is the entire integration fyi: https://github.com/DanielLukic/consul-dart/blob/termlib/lib/src/consul/con_io/termlib_con_io.dart |
|
WOW.. Regarding this PR.. I still do not did a proper rundown with multiplexers, but is on my to-do list. I'll work with them after the next release that is almost finished. I'll look more about the 1002 and 1005 events Key detection/handling is more complex and the default/old terminal key handler has no way to disambiguate keys. I suggest to use the examples [C-?]: with the default key handling, this key combination is mapped to [C-J]: seems this key sequence has the value The solution to this is use a terminal that implements the Kitty Key Handling protocol this is an example output using
There are different modes that can enabled with the protocol and event get Press and Release events. I'll not change the default key handling method, that could have a lot of unintended side effects. I'll think around this. Regarding the |
|
I was digging a bit into the 1015 mouse event and found this:
https://gist.github.com/halcyon/334da650816876d7be4d1bee8a157f25#file-gistfile1-txt-L1703 I think '1000;1003;1006' is the good enough setup to avoid issues. |
|
Understood. Again, I just hacked the code to make it work for me. I assumed there are good reasons for why it behaved differently. I clearly looks more "correct" than what I was using before.. 🙃 However, using the Anyway, I can stick with the old input mapping that works for me. I can combine this easily with |

hi there, this is just an fyi PR for you. i'm currently working on a fun side project to learn dart.
if you're interested:
anyway, i was using https://pub.dev/packages/dart_console initially. and it works for me. but i found your repo and it looks more advanced. so i integrated it as an alternative. the commit would be, again in case you're interested: DanielLukic/consul-dart@7e66d1a
but i noticed that a) mouse motion events are not delivered. i only then realized everything works in tmux and without a multiplexer. but not inside zellij. so obviously an edge case. but maybe worth mentioning or providing a potential work around? afaik zellij people are not eager to be more compatible. but ofc this seems to be a zellij issue.
i also noticed that <C-?> is mapped to and i don't know why that is.. 🙃 🤷 so another quirk fix in this PR would allow receiving <C-?>. not sure, i'm probably missing something here.
finally, i noticed that in raw mode is still mapped to . is this what is standard usually? i find that weird. doesn't raw mode remap to also? in my own code i have a dedicated
Control.Returnand don't even use "enter" because it confused me.. a lot.. 🤣 🤷 🙈well... this being said.. this PR is just a fyi.. wasn't sure how else/best to contact you.. but feel free to ignore/close.. that's totally fine..
cheers, daniel