pmattes / x3270

Family of IBM 3270 emulators
46 stars 18 forks source link

With s3270, in NVT mode, is it possible to know when the host does not echo the character? #18

Closed joelduquene closed 3 years ago

joelduquene commented 3 years ago

Using s3270, when in NVT mode and sending characters to the host, is there a way to know when the host does not echo the characters? For example, if the input is for a password, the host will not echo the character.

When building a UI interface that interacts with s3270, there is a need to know that the characters are not to be echoed for a particular field. This way, when the user types into an area that is meant to be non-display, the UI does not display the characters.

I have verified that with x3270, when in NVT mode, it does not echo the character. I am looking to find out how, when using s3270, to know when the input is not to be echoed in the UI.

Thanks!

joelduquene commented 3 years ago

I believe that the answer is found here https://x3270.miraheze.org/w/index.php?title=Terminal_Emulation&mobileaction=toggle_view_desktop under the NVT Mode section, where it says: "The host can also negotiate character-at-a-time mode, where each individual keystroke is sent to the host immediately, and it is up to the host to echo them back to the display."

So, if the host does not echo the character then it is not displayed.