st1
Simple terminal
Usage
st [-aiv]
[-c
class]
[-f
font]
[-g
geometry]
[-n
name]
[-o
iofile]
[-T
title]
[-t
title]
[-l
line]
[-w
windowid]
[[-e]
command
[arguments ...]]
st [-aiv]
[-c
class]
[-f
font]
[-g
geometry]
[-n
name]
[-o
iofile]
[-T
title]
[-t
title]
[-w
windowid]
-l
line
[stty_args ...]
Overview
st is a simple terminal emulator.
Options
-
-a -
disable alternate screens in terminal
-cclass-
defines the window class (default $TERM).
-ffont-
defines the font to use when st is run.
-ggeometry-
defines the X11 geometry string. The form is [=][<cols>{xX}<rows>][{+-}<xoffset>{+-}<yoffset>]. See XParseGeometry(3) for further details.
-
-i -
will fixate the position given with the -g option.
-nname-
defines the window instance name (default $TERM).
-oiofile-
writes all the I/O to iofile. This feature is useful when recording st sessions. A value of "-" means standard output.
-Ttitle-
defines the window title (default 'st').
-ttitle-
defines the window title (default 'st').
-wwindowid-
embeds st within the window identified by windowid
-lline-
use a tty line instead of a pseudo terminal. 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
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 arestty(1)flags. If you want to set odd parity on 115200 baud use for example 'st -l /dev/ttyS0 parenb parodd 115200'. Set the number of bits by using for example 'st -l /dev/ttyS0 cs7 115200'. Seestty(1)for more arguments and cases.
-
-v -
prints version information to stderr, then exits.
-ecommand [ arguments ... ]-
st executes command instead of the shell. If this is used it 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.
Shortcuts
Break-
Send a break in the serial line. Break key is obtained in PC keyboards pressing at the same time control and pause.
- Ctrl-Print Screen
-
Toggle if st should print to the iofile.
- Shift-Print Screen
-
Print the full screen to the iofile.
- Print Screen
-
Print the selection to the iofile.
- Ctrl-Shift-Page Up
-
Increase font size.
- Ctrl-Shift-Page Down
-
Decrease font size.
Ctrl-Shift-Home-
Reset to default font size.
Ctrl-Shift-y-
Paste from primary selection (middle mouse button).
Ctrl-Shift-c-
Copy the selected text to the clipboard selection.
Ctrl-Shift-v-
Paste from the clipboard selection.
Customization
st can be customized by creating a custom config.h and (re)compiling the source code. This keeps it fast, secure and simple.
Releases
5 releases since Debian 7 (Wheezy); the text changed 4 times.
-a since Debian 10 (Buster);
-i since Debian 10 (Buster).
-c until Debian 7 (Wheezy);
-t until Debian 7 (Wheezy).