6 .Nd uncomplicated serial terminal
9 .Op Fl \-line|\-l Ar line
10 .Op Fl \-speed|\-s Ar # | Ar \-#
11 .Op Fl \-rx\-speed|\-i Ar #
12 .Op Fl \-data\-bits|\-D Ar #
13 .Op Fl \-stop\-bits|\-S
16 .Op Fl \-hardware\-rts\-cts|\-r
17 .Op Fl \-hardware\-dtr\-dsr|\-R
19 .Op Fl \-delay|\-d Ar #
20 .Op Fl \-min\-chars|\-m Ar #
21 .Op Fl \-canonical|\-c
23 .Op Fl \-backspace|\-b
25 .Op Fl \-translation|\-t Ar option
26 .Op Fl \-input\-translation|\-T Ar option
29 is a simple, highly configurable serial terminal with stdin/stdout redirection support.
30 Unlike other utilities of it's kind,
32 always has all options set \- even the line (device name).
33 So running ust without any arguments:
35 .Bd -literal -offset indent
39 Will make it try to open the line specified in
41 This way the user might set a default config for a specific device without any additional sh scripts or aliases, or just set a different default for a few options as their preference.
43 .Bl -tag -width ".Fl \-line|\-l Ar line"
44 .It Fl \-line|\-l Ar line
45 The device name can be input in two formats:
49 .It Fl \-speed|\-s Ar # | Ar \-#
50 Baudrate set by this flag also applies to RX baud if that wasn't explicitly set.
51 .It Fl \-rx\-speed|\-i Ar #
52 Separate baudrate for RX line.
53 .It Fl \-data\-bits|\-D Ar #
54 Data bits, may be set to:
60 .It Fl \-stop\-bits|\-S
61 Two stop bits are set if the flag is toggled on (in case of
63 data bits, it's 1,5, which just means that the line is in marking state for the duration equal to 1,5 times the standard bit period)
64 when toggle is off 1 stop bit is set in every case.
68 Toggle odd parity (toggling both on disables parity entirely).
69 .It Fl \-hardware\-rts\-cts|\-r
70 Toggle RTS/CTS flow control.
71 .It Fl \-hardware\-dtr\-dsr|\-R
72 Toggle DTR/DSR flow control (setting both hardware flow control options will enable DCD flow control).
74 Toggle XON/XOFF software flow control (can be enabled with hardware flow control simultaneously).
75 .It Fl \-delay|\-d Ar #
76 Delay between sending multiple characters (when redirecting stdin or writing a file) to the line in nanoseconds.
77 .It Fl \-min\-chars|\-m Ar #
78 The minimum of characters to input before they get sent to the line.
79 .It Fl \-canonical|\-c
80 Toggle canonical mode (the ability to edit the input locally before sending it to the line).
82 Toggle local echo (half\-duplex mode).
83 .It Fl \-backspace|\-b
84 Toggle the backspace key character between
89 Toggle verbose output printed to stderr.
90 .It Fl \-translation|\-t Ar option
91 Toggle translation options (to the line) for CR and LF, toggling multiple should be done like so:
92 .Fl t Ar no\-cr Fl t Ar no\-lf .
93 .It Fl \-input\-translation|\-T Ar option
94 Toggle translation options (from the line) for CR an LF, the options are:
104 If the first character in the input buffer is the special character (tilde by default, can be changed in
106 it will be escaped and the next character may run a command.
107 .Bl -tag -width ".Fl \&. No or Ar \&^D"
108 .It Ar \&. No or Ar \&^D
109 Drop the connection and exit.
111 Set new speed (both TX and RX).
113 Set new character delay.
115 Toggle backspace character
117 Toggle a translation option (output|input).
119 Toggle canonical mode
123 Write a file to the line.
129 exits 2 if some of the user\-set options were invalid and exits 1 on general errors.
133 Pipe the utility and write output to a file.
134 .Bd -literal -offset indent
135 $ printf "00,78,FFFF\\r45\\r" | ust \-19200 \-d 9000000 > wozmon.out
155 The program is still in development, if you are reading this, know that a lot of functionality does not work or work as expected.