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

need terminal codes documentation #53

Open
najohnsn opened this issue Sep 16, 2022 · 0 comments
Open

need terminal codes documentation #53

najohnsn opened this issue Sep 16, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@najohnsn
Copy link
Member

najohnsn commented Sep 16, 2022

Interacting with a 3270 terminal (i.e. through zti) generally requires more than just the normal keys on a modern keyboard. But keys (and key combinations) outside of the normal keys are not consistently mapped by terminals used to run zti. The key codes that zti expects should be documented so that users can configure their terminal emulator to bind the appropriate codes key combinations.

For example:

Intended Key Combination Expected Code(s) Action
Shift+Enter \n newline
Alt+1 \0331 PA1
Alt+2 \0332 PA2
Alt+3 \0333 PA3
Alt+PgUp \033\033[5~ Prev Session
Alt+PgDn \033\033[6~ Next Session
Insert \033[2~ Toggle mode

There are many others in addition to the ones in the table above. The codes can be determined from zti.py and _termlib.py.

@najohnsn najohnsn added the documentation Improvements or additions to documentation label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant