|
The PTERM() function sets, clears or queries a terminal setting.
Format
PTERM(action, value)
where
| action | specifies the terminal setting to be processed. |
| value | specified the new value. A negative value returns the current setting. |
The PTERM() function can be used to set, clear or query the following terminal settings:
1
|
PT$BREAK
|
Interpret break character as break key? (boolean)
|
2
|
PT$INVERT
|
Invert case of alphabetic characters on input? (boolean)
|
3
|
PT$BRKCH
|
Sets break character to be char(value). The value must be in the range 1 to 31. For any other value, the current setting is returned.
|
4
|
PT$PAGE.PAUSE
|
Set/clear page pause (boolean)
|
5
|
PT$MARK
|
Set/clear translation of characters 28-30 on keyboard input to field, value and subvalue marks. (boolean)
|
6
|
PT$BINARY
|
Set/clear telnet binary mode (boolean).
|
7
|
PT$ENCODING
|
Sets or returns the terminal encoding. The value associated with this action identifies the encoding to be set. This may be
0 PT$ENCODING.8BIT
1 PT$ENCODING.UTF8
A negative value returns the currently active encoding value without change.
The encoding value is ignored for QMConsole sessions on Windows.
|
Action values marked as boolean enable the feature if value is true and disable it if value is false. The new state is returned as the value of the function. A negative value returns the current state without changing it.
See also:
PTERM
|