# list-lines command

The list-lines BASIC program displays
communications protocol information for every port attached to the
virtual machine.

**Synonyms:** list.lines

**For Windows:** Not Supported

**For UNIX:**UNIX device name displays.

## Syntax

```
list-lines
```

## Description

The report includes these headings:

| Line# | PIB or port number. |
| --- | --- |
| Baud/rt | Baud rate of the port. |
| Parity | State of parity: none, even or odd. |
| Stop | Number of stop bits. |
| Data | Number of data bits. |
| DCD | Data carrier detect status, on or off. |
| Xon/off | State of flow control, enabled or disabled. |
| TTY | UNIX tty device attached to the port. For UNIX: The tty parameter is supported by UNIX only. |
Warning: If the process is not connected to the
virtual machine, list-lines fails to report the
terminal setting.

## Example(s)

```
list-lines

Line# Baud/rt Parity Stop Data DCD Xon/off TTY
0 9600 NONE 1 8 OFF enabled /dev/tty0
1 OFF
2 9600 NONE 1 8 OFF enabled /dev/tty2
3 9600 NONE 1 8 OFF enabled /dev/tty3
4 9600 NONE 1 8 OFF enabled /dev/tty4
```

## See also

- [:reset-async command](https://d3codex.com/tcl/colon-reset-async-command/)
- [dtr-on command](https://d3codex.com/tcl/cdtr-on-command/)
- [Port number](https://d3codex.com/definitions/port-number/)
- [set-port command](https://d3codex.com/tcl/set-port-command/)
- [setport command](https://d3codex.com/tcl/setport-command/)
- [xonoff command](https://d3codex.com/tcl/xonoff-command/)

---
Source: https://d3codex.com/tcl/list-lines-command/ - part of the D3Codex reference.
