Skip to content

pa1 for attention #78

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

Merged
merged 1 commit into from
Sep 15, 2023
Merged

pa1 for attention #78

merged 1 commit into from
Sep 15, 2023

Conversation

najohnsn
Copy link
Member

@najohnsn najohnsn commented Sep 12, 2023

This PR enhances the PA1 key for situation in which the keyboard is locked.

Experience has show z/VM to not handle the normal ATTN (telnet BRK=243). However, it appears to expect PA1 even when the keyboard should otherwise be locked - PA1 serves as a general attention key. This behavior has been observed when accessing z/OS applications through z/VM.

@najohnsn najohnsn self-assigned this Sep 12, 2023
Signed-off-by: Neil Johnson <[email protected]>
@najohnsn najohnsn added the bug Something isn't working label Sep 12, 2023
@najohnsn najohnsn marked this pull request as ready for review September 12, 2023 18:56
@v1gnesh
Copy link

v1gnesh commented Sep 13, 2023

Hi Neil,

I meant to ask... do you happen to know what modifier I need to put in VS Code's settings.json to translate a key (say ` ) to PA1 or ATTN?

@najohnsn
Copy link
Member Author

Hi Neil,

I meant to ask... do you happen to know what modifier I need to put in VS Code's settings.json to translate a key (say ` ) to PA1 or ATTN?

In VS Code, I think the only issue I've ever had was with function keys - because they are often trapped by VS Code itself instead of passing on to the terminal. For PA1 and ATTN:

Session: NONE> help keys
KEYS:
 ATTN           - Ctrl+C or Alt+A
 CLEAR          - Ctrl+L or Alt+C
 DROP session   - Ctrl+W
 ENTER          - Enter
 End            - End
 eraseeof       - Ctrl+K or Shift+End
 Escape         - Esc
 Next session   - Alt+PgDn
 Open URL       - Ctrl+O or mouse click
 PA1            - Alt+1 or Alt+Insert
 PA2            - Alt+2 or Alt+Home
 PA3            - Alt+3
 PF1-12         - F1-12
 PF13-24        - Shift+F1-12
 Prev session   - Alt+PgUp
 Word Left      - Alt+Left
 Word Right     - Alt+Right

Ctrl+C should work for ATTN unless connected through z/VM. Alt+1 should work for PA1. On MacOS, I believe that you would use Option+1 for PA1.

If you want some custom actionsin the VS Code terminal, you may want to check out these:

@v1gnesh
Copy link

v1gnesh commented Sep 13, 2023

Morning!

Just realizing that I wanted to say Windows Terminal and not VS Code.
It's Terminal's settings.json that requires ANSI codes that I'm looking for (for PA1 and ATTN).

@najohnsn
Copy link
Member Author

Morning!

Just realizing that I wanted to say Windows Terminal and not VS Code. It's Terminal's settings.json that requires ANSI codes that I'm looking for (for PA1 and ATTN).

I think you want to check out https://learn.microsoft.com/en-us/windows/terminal/customize-settings/actions#send-input. It describes how to bind a key to terminal input.

The terminal input value that you want for PA1 is documented in #53 in the expected code(s) column.

@najohnsn najohnsn merged commit 773cf4c into main Sep 15, 2023
@najohnsn najohnsn deleted the attn-pa1 branch September 15, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants