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

Change keyboard behaviour independently of terminal emulation #409

Open
mabartibin opened this issue Feb 4, 2025 · 0 comments
Open

Change keyboard behaviour independently of terminal emulation #409

mabartibin opened this issue Feb 4, 2025 · 0 comments

Comments

@mabartibin
Copy link

I’d like to be able to adjust the behaviour of arrow keys, PgUp/PgDn, etc. on my keyboard independently of the terminal emulation (ANSI, Kaypro, etc.). The TermInfo class is an abstraction for the combination of these, but all available terminal types use kbdConv_Generic which creates WordStar commands.

It would be nice to generate Emacs keys for use with the MINCE editor, something else for TE, etc. While many of the old editors can be configured to generate various control sequences for their output, they don’t tend to support changing key bindings, and of course the old terminals didn’t have any navigation keys.

(Speaking of Emacs: picking one of the modifiers as "Meta" key and translating e.g. Alt-V to ESC V would also help. It seems at least some terminals did that when Emacs was designed)

I could hack this by adding a few new TermInfoKbdConv to terminf.cpp and then making TermInfoobjects for the combinations I’m interested in. But it seems to me that a refactoring of TermInfo into TermVideoInfo and TermKbdInfo would be a better approach.

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