aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.121
-rw-r--r--st.c2
2 files changed, 19 insertions, 4 deletions
diff --git a/st.1 b/st.1
index b961b26..29e3163 100644
--- a/st.1
+++ b/st.1
@@ -89,9 +89,24 @@ embeds st within the window identified by
89.I windowid 89.I windowid
90.TP 90.TP
91.BI \-l " line" 91.BI \-l " line"
92use a tty line instead of a pseudo terminal. 92use a tty
93When this flag is used 93.I line
94remaining arguments are used as flags for stty. 94instead of a pseudo terminal.
95.I line
96should be a (pseudo-)serial device (e.g. /dev/ttySO on Linux for serial port
970).
98When this flag is given
99remaining arguments are used as flags for
100.BR stty(1).
101By default st initializes the serial line to 8 bits, no parity, 1 stop bit
102and a 38400 baud rate. The speed is set by appending it as last argument
103(e.g. 'st -l 115200'). Arguments before the last one are
104.BR stty(1)
105flags. If you want to set odd parity on 115200 baud use for example 'st -l
106parenb parodd 115200'. Set the number of bits by using for example 'st -l cs7
107115200'. See
108.BR stty(1)
109for more arguments and cases.
95.TP 110.TP
96.B \-v 111.B \-v
97prints version information to stderr, then exits. 112prints version information to stderr, then exits.
diff --git a/st.c b/st.c
index d49804b..256f8f5 100644
--- a/st.c
+++ b/st.c
@@ -4294,7 +4294,7 @@ usage(void)
4294 " [-i] [-t title] [-T title] [-w windowid] [-e command ...]" 4294 " [-i] [-t title] [-T title] [-w windowid] [-e command ...]"
4295 " [command ...]\n" 4295 " [command ...]\n"
4296 " st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]\n" 4296 " st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]\n"
4297 " [-i] [-t title] [-T title] [-w windowid] [-l line]" 4297 " [-i] [-t title] [-T title] [-w windowid] -l line"
4298 " [stty_args ...]\n", 4298 " [stty_args ...]\n",
4299 argv0); 4299 argv0);
4300} 4300}