# aux-on command

For mvBase users: mvBase supports auxiliary printers defined via the
 aux-on TCL command.

Note: The aux-on TCL command (with the intermediary hyphen) is distinct from
 the aux on mvBASIC statement (without the intermediary hyphen).

 Output that is directed to a system printer can be routed to the terminal’s AUX port. SPOOLER
 hold files can also be directed to the terminal’s AUX port instead of one of the system or
 network printers.

## Syntax

```
aux [on]
```

## Parameter(s)

| on | Enables spooling to the auxiliary port, and saves the p and h flags of the current TCL sp-assign status. |
| --- | --- |

## Description

The terminal must have a printer connected to its AUX port in such a manner that the printer
 can indicate to the terminal, and from there to the system, that its print buffer is full. This
 can be done by using the xonoff command or CTS/RTS handshaking, depending on
 the printer, terminal, and cabling involved.

 For an AUX port to work correctly, a correct terminal definition in the system cursor file
 must be set up for the control codes that switch the terminal’s AUX port on and off. For more
 information, refer to the [define-cursor command](https://d3codex.com/tcl/define-cursor-command/) topic
 ([define-terminal command](https://d3codex.com/tcl/define-terminal-command/)).

 The aux-on TCL command selects the auxiliary printer as the output device
 for all printer output until the aux-off command is issued.

 Output can also be directed to the auxiliary port of your terminal as one of the options of
 the sp-assign with option a command. sp-assign (option a)
 directs the output to your AUX port, and is functionally equivalent to an
 aux-on command. For more information, refer to the [sp-assign command](https://d3codex.com/tcl/sp-assign-command/) topic.

## See also

- [aux-off command](https://d3codex.com/tcl/aux-off-command/)
- [define-cursor command](https://d3codex.com/tcl/define-cursor-command/)
- [define-terminal command](https://d3codex.com/tcl/define-terminal-command/)
- [sp-assign command](https://d3codex.com/tcl/sp-assign-command/)
- [xonoff command](https://d3codex.com/tcl/xonoff-command/)

---
Source: https://d3codex.com/tcl/aux-on-command/ - part of the D3Codex reference.
