nageyqma·git
HTTPS https://git.nageyqma.icu/nageyqma/st.git SSH git@git.nageyqma.icu:nageyqma/st.git

HTTPS 链接可直接 git clone;推送代码请使用 SSH。

3.5 KB · 177 行raw
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
.TH ST 1 st\-VERSION
.SH NAME
st \- simple terminal
.SH SYNOPSIS
.B st
.RB [ \-aiv ]
.RB [ \-A
.IR alpha ]
.RB [ \-c
.IR class ]
.RB [ \-f
.IR font ]
.RB [ \-g
.IR geometry ]
.RB [ \-o
.IR iofile ]
.RB [ \-T
.IR title ]
.RB [ \-t
.IR title ]
.RB [ \-l
.IR line ]
.RB [[ \-e ]
.IR command
.RI [ arguments ...]]
.PP
.B st
.RB [ \-aiv ]
.RB [ \-A
.IR alpha ]
.RB [ \-c
.IR class ]
.RB [ \-f
.IR font ]
.RB [ \-g
.IR geometry ]
.RB [ \-o
.IR iofile ]
.RB [ \-T
.IR title ]
.RB [ \-t
.IR title ]
.RB \-l
.IR line
.RI [ stty_args ...]
.SH DESCRIPTION
.B st
is a simple terminal emulator for Wayland.
It uses xdg-shell and wl_shm directly; there is no X11 backend.
.SH OPTIONS
.TP
.B \-a
disable alternate screens in terminal
.TP
.BI \-A " alpha"
set the opacity of the terminal background (0.0 to 1.0).
This overrides the
.I alpha
value from config.h.
.TP
.BI \-c " class"
defines the application id (default $TERM).
.TP
.BI \-f " font"
defines the
.I font
to use when st is run (a fontconfig pattern).
Characters it has no glyph for are taken from the first installed font that
does cover them.
.TP
.BI \-g " geometry"
sets the initial size of the terminal in columns and rows.
The form is [<cols>][x<rows>].
Wayland does not allow clients to position their windows, so any
.I xoffset
or
.I yoffset
is ignored with a warning.
.TP
.B \-i
fix the window to its initial size (the compositor is asked to keep the
minimum and maximum size equal).
.TP
.BI \-o " iofile"
writes all the I/O to
.IR iofile .
This feature is useful when recording st sessions.  A value of "-" means
standard output.
.TP
.BI \-T " title"
defines the window title (default 'st').
.TP
.BI \-t " title"
defines the window title (default 'st').
.TP
.BI \-l " line"
use a tty
.I line
instead of a pseudo terminal.
.I line
should be a (pseudo-)serial device (e.g. /dev/ttyS0 on Linux for serial port
0).
When this flag is given
remaining arguments are used as flags for
.BR stty (1).
By default st initializes the serial line to 8 bits, no parity, 1 stop bit
and a 38400 baud rate.  The speed is set by appending it as last argument
(e.g. 'st -l /dev/ttyS0 115200').  Arguments before the last one are
.BR stty (1)
flags.
.TP
.B \-v
prints version information to stderr, then exits.
.TP
.BI \-e " command " [ " arguments " "... ]"
st executes
.I command
instead of the shell.  If this is used it
.B must be the last option
on the command line, as in xterm / rxvt.
This option is only intended for compatibility,
and all the remaining arguments are used as a command
even without it.
.SH SHORTCUTS
.TP
.B Break
Send a break in the serial line.
.TP
.B Ctrl-Print Screen
Toggle if st should print to the
.I iofile.
.TP
.B Shift-Print Screen
Print the full screen to the
.I iofile.
.TP
.B Print Screen
Print the selection to the
.I iofile.
.TP
.B Ctrl-=
Increase font size.
.TP
.B Ctrl-Minus
Decrease font size.
.TP
.B Ctrl-Shift-Home
Reset to the default font size.
.TP
.B Ctrl-Shift-c
Copy the selected text to the clipboard selection.
.TP
.B Ctrl-Shift-v
Paste from the clipboard selection.
.TP
.B Ctrl-Shift-y
Paste from the primary selection (middle mouse button).
.TP
.B Shift-Insert
Paste from the primary selection.
.TP
.B Ctrl-Shift-s
Toggle keyboard selection mode.
.SH CUSTOMIZATION
.B st
is customized by editing config.h and recompiling the source code.
This keeps it fast, secure and simple.
.SH AUTHORS
See the LICENSE file for the authors.
.SH LICENSE
See the LICENSE file for the terms of redistribution.
.SH SEE ALSO
.BR stty (1),
.BR scroll (1)
.SH BUGS
See the TODO file in the distribution.