The TTYGET() function returns a dynamic array containing the current terminal settings.
The TTYGET() function allows an application that alters terminal settings to read and save the original terminal settings for restore on exit.
The dynamic array currently contains the fields listed below. Further fields may be added in future.
1Ctrl-C treated as the break key? (PTERM BREAK mode)
2Case inversion on? (PTERM CASE mode)
3Break character value (PTERM BREAK n)
4Output newline sequence (PTERM NEWLINE)
5Input return key code (PTERM RETURN)