-
Notifications
You must be signed in to change notification settings - Fork 59
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
Key bindings for DEC VT-320 terminal #38
base: main
Are you sure you want to change the base?
Conversation
Thanks, this is fun! I wonder if I can just automate it though, if TERM=vt320, can I just send those strings in main() and it will work? |
Untested, but I'm thinking of something like this in main()? if (strcmp(getenv("TERM"), "vt320") == 0) {
setenv("TERM, "vt100", 1);
fwrite(""\eP1;1;1|33/1b5b363b357e\e\\", xx, 1, stdout);
} |
I did it in this new commit. I used printf() because fwrite() - also with fflush() - did not write anything on the terminal. |
The patch looks good to me! I copied your note to the wiki too: https://github.com/taviso/123elf/wiki/Terminals I've noticed there is a built-in keymap called "vtxxx", but I don't know what it does, I just want to check that isn't better than vt100 for some terminals before overwriting it! |
Do you think it's possibile to control PF3 and PF4 keys through your patch? |
No description provided.