NOECHO

xcall NOECHO {,channel}

NOECHO.SBR is used to disable terminal echo within a program. It is usually used in conjunction with GET or some other subroutine for terminal input, such as INFLD, in order to (a) allow character input, and (b) disable echo. NOECHO does not affect the true state of the terminal, but merely changes the internal operation of A-Shell itself. So, for example, if HOSTEX is used to execute a host command, that command will function in the same way whether or not the NOECHO subroutine had been used.

Under UNIX, a serial port may be opened for input, and then NOECHO called with that channel specified, for example:

open #1,"/dev/tty1",input

xcall NOECHO,1

 

In this case, the true host mode of the port will be changed. Echo will be disabled, cooked mode processing will be disabled and so on, enabling all characters to be received unaltered from the port with the GET routine. This is particularly useful for communicating with external equipment such as modems, time record devices and so on.

If a port’s mode is changed in this way, then it should be reset with NOECHO before closing the channel. Failure to do this will leave the port in its altered state even when A-Shell is exited.