Skip to content
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 for sending ansi special characters to terminal #853

Open
JPaja opened this issue Jan 4, 2024 · 0 comments
Open

Support for sending ansi special characters to terminal #853

JPaja opened this issue Jan 4, 2024 · 0 comments

Comments

@JPaja
Copy link

JPaja commented Jan 4, 2024

Is your feature request related to a problem? Please describe.

There is no support for sending some special keys in raw mode like Home, End, PgUp, PgDn, F{n}, and similar via execute macro.

Describe the solution you'd like
Nice solution would be to impl Command on KeyCode, where it would map special chars to its ansi code,

Additionally it could be useful to implement Command on KeyEvent since there is support for modifier in ansi format:
<esc> '[' (<keycode>) (';'<modifier>) '~'

Also this approach makes it easy to just pass event to keyboard if you do not want to block it.

Additional context
Some documentation i found:
https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_input_sequences
https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797#keyboard-strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant