-
Notifications
You must be signed in to change notification settings - Fork 109
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
st can't handle escape codes emitted by vi or nvim #92
Comments
If I'm reading this correctly we have these two:
mapping to this:
both having a Pp of 4 meaning modify other keys. https://invisible-island.net/xterm/manpage/xterm.html#VT100-Widget-Resources:modifyOtherKeys
So it sounds like when you enter nvim it wants to enable this feature and it tries to disable it afterwards when you exit nvim. It sounds xterm specific. If you wanted to you could add dummy case statements that just ignores the escape codes. This was also raised in #63 but the reporter just ended up commenting out the Then we have:
This looks like an operating system command.
It is not entirely clear what The escape code is also not listed here: but https://man7.org/linux/man-pages/man4/console_codes.4.html suggests that this may be a VT100 console sequence.
That said This page for As there are no additional parameters I wonder if it asks for the hyperlink (if any exists) or if it suggests that the hyperlink should be removed if one exists. This is pure speculation on my part of course. |
Thanks for your detailed, answer. I was able to find the documentation in NVIM readme for the
Based on this documentation, do you think something could be done to |
So this can be summarised as:
Good to have all this information in one place.
I think the question is whether it is possible to implement CSI u in st. This is likely a question for the maintainers. The assumption here is of course that nvim misbehaves in some way when used in Would be good to have some practical demonstrations showing that some key combinations work differently in other terminal emulators but do the same thing in I tried to find some details that are specifically on the CSI u escape sequence:
and modifyOtherKeys:
If I come across better references then I'll add them above. |
Thanks for the detailed answer. In my case, I am actually using the |
Not sure if that is the same thing. That But let's leave that aside and pretend that According to the nvim documentation you added they send the escape sequence of As for getting rid of the
it is enough to just add a dummy case statement in case '>':
break; |
Thanks for the suggestion. I'll add the case as you have suggested in https://sourcegraph.com/github.com/neovim/neovim/-/blob/src/nvim/tui/tui.c?L1877&subtree=true Would it be possible for me to handle this in a better way? Something worth adding a patch for? |
I don't know. If you are able to copy the protocol and key handling from kitty then you may be on to something. |
When I open
vi
, I get the following error from st:When I open
nvim
, I get the following error:How do I go about fixing these or adding support for these escape sequences?
The text was updated successfully, but these errors were encountered: