1 .TH "tio" "1" "@version_date@" "tio @version@" "User Commands"
4 tio \- a simple TTY terminal I/O tool
9 .RI "[" <options> "] " "<tty-device>"
14 is a simple TTY terminal tool which features a straightforward command-line
15 interface to easily connect to TTY devices for basic I/O operations.
20 .BR \-b ", " "\-\-baudrate " \fI<bps>
22 Set baud rate [bps] (default: 115200).
24 .BR \-d ", " "\-\-databits 5" | 6 | 7 | 8
26 Set data bits (default: 8).
28 .BR \-f ", " "\-\-flow hard" | soft | none
30 Set flow control (default: none).
32 .BR \-s ", " "\-\-stopbits 1" | 2
34 Set stop bits (default: 1).
36 .BR \-p ", " "\-\-parity odd" | even | none
38 Set parity (default: none).
40 .BR \-o ", " "\-\-output\-delay " \fI<ms>
42 Set output delay [ms] inserted between each sent character (default: 0).
44 .BR \-n ", " \-\-no\-autoconnect
46 Disable automatic connect.
48 By default tio automatically connects to the provided device if present. If the device is not present, it will wait for it to appear and then connect. If the connection is lost (eg. device disconnects), it will wait for the device to reappear and then reconnect.
51 .B \-\-no\-autoconnect
52 option is provided, tio will exit if the device is not present or an established connection is lost.
55 .BR \-e ", " "\-\-local\-echo
60 .BR \-t ", " \-\-timestamp
62 Enable line timestamp.
65 .BR \-L ", " \-\-list\-devices
67 List available serial devices.
70 .BR \-l ", " "\-\-log " \fI<filename>
75 .BR \-m ", " "\-\-map " \fI<flags>
77 Map (replace, translate) special characters on input or output. The following mapping flags are supported:
82 Map CR to NL on input (unless IGNCR is set).
86 Map NL to CR on input.
88 Map NL to CR-NL on input.
90 Map CR to NL on output.
92 Map DEL to BS on output.
94 Map NL to CR-NL on output.
96 If defining more than one flag, the flags must be comma separated.
100 .BR \-c ", " "\-\-color " \fI<0..255>
102 Colorize tio text using ANSI color code.
104 If color code is negative a list of available ANSI colors will be printed.
107 .BR \-v ", " \-\-version
109 Display program version.
111 .BR \-h ", " \-\-help
118 In session, the following key sequences are intercepted as tio commands:
120 List available key commands
122 Send serial break (triggers SysRq on Linux, etc.)
124 Show configuration (baudrate, databits, etc.)
126 Toggle local echo mode
128 Toggle hexadecimal mode
134 Show TX/RX statistics
138 Show lines state (DTR, RTS, CTS, DSR, DCD, RI)
148 Typical use is without options. For example:
152 Which corresponds to the commonly used options:
154 tio \-b 115200 \-d 8 \-f none \-s 1 \-p none /dev/ttyUSB0
156 It is recommended to connect serial tty devices by ID. For example:
158 tio /dev/serial/by\-id/usb\-FTDI_TTL232R-3V3_FTGQVXBL\-if00\-port0
160 Using serial devices by ID ensures that tio automatically reconnects to the
161 correct serial device if the device is disconnected and then reconnected.
165 Visit https://tio.github.io
169 Written by Martin Lund <martin.lund@keep\-it\-simple.com>.