COM === Function -------- **COM** activates or deactivates the communications interrupt routine. Syntax ------ | COM ON | COM OFF | COM STOP These statements must be initialised with an :doc:`on-com` statement. Example ------- :: 10 ON COM GOSUB 1000 20 COM ON 1000 REM TRAP ROUTINE 1010 LINPUT A$ ... 1990 RETURN Remarks ------- These statements decide what action is taken on receiving communications. The interrupt occurs on the first character. COM ON When executed, allows trapping of communications by the ON COM statement. If the previous state was COM OFF then the buffer is cleared by this statement. COM OFF The trapping is deactivated and all communications interrupts are ignored. COM STOP Communications interrupts are noted but not acted upon by the ON COM statement until a COM ON is executed.