SNAX/APN Application Programming Manual
The ITI Interface
SNAX/APN Application Programming Manual—420111-001
3-9
Setting Auto Line Feed (SETMODE Function 7)
Setting Auto Line Feed (SETMODE Function 7)
The carriage return is used as a line-termination character when you press the return key
at the terminal to enter your input. Upon receipt of the carriage return, the system sends
the terminal a line feed character if auto line feed is on. You can use function 7 of the
SETMODE procedure to control whether the system sends the line feed character:
param1
0 Turns auto line feed off.
1 Turns auto line feed on (default).
For example, if auto line feed is on, the cursor is positioned at the beginning of the next
line after you press the return key to enter your input.
Setting Echo Mode (SETMODE Function 20)
When a user types text at a terminal, the text usually appears on the screen as it is typed;
that is, the text is echoed. Sometimes it is useful, however, for text to be hidden; for
example, when typing in a password. In conversational mode, you can control whether
text is echoed using SETMODE function 20:
param1
0 Disables character echo.
1 Enables character echo (default).
Resetting to Default Values (SETMODE Function 28)
SETMODE function 28 resets the following values to their defaults (the default values
in parentheses):
•
Line feed control (single space)
•
Line feed mode (postspacing)
•
Auto line feed (on)
•
Echo mode (on)
The syntax of the procedure call is as follows:
CALL SETMODE ( filenum , 7 , param1 ) ;
CALL SETMODE ( filenum , 20 , param1 ) ;
CALL SETMODE ( filenum , 28 , 0 ) ;