08 June 2025

st

System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Deps: st-0.9.2.tar.gz

A simple terminal implementation for X.

Modify PREFIX in config.mk as follows.

- PREFIX = /usr/local
+ PREFIX = ~/.local

bash-5.1$ cd st-0.9.2
bash-5.1$ make clean install
rm -f st st.o x.o st-0.9.2.tar.gz
cp config.def.h config.h
c99 -I/usr/X11R6/include `pkg-config --cflags fontconfig` `pkg-config --cflags freetype2` -DVERSION=\"0.9.2\" -D_XOPEN_SOURCE=600 -O1 -c st.c
c99 -I/usr/X11R6/include `pkg-config --cflags fontconfig` `pkg-config --cflags freetype2` -DVERSION=\"0.9.2\" -D_XOPEN_SOURCE=600 -O1 -c x.c
c99 -o st st.o x.o -L/usr/X11R6/lib -lm -lrt -lX11 -lutil -lXft `pkg-config --libs fontconfig` `pkg-config --libs freetype2`
mkdir -p ~/.local/bin
cp -f st ~/.local/bin
chmod 755 ~/.local/bin/st
mkdir -p ~/.local/share/man/man1
sed "s/VERSION/0.9.2/g" < st.1 > ~/.local/share/man/man1/st.1
chmod 644 ~/.local/share/man/man1/st.1
tic -sx st.info
7 entries written to /home/eric/.terminfo
Please see the README file regarding the terminfo entry of st.
bash-5.1$ strip --strip-unneeded ~/.local/bin/st
bash-5.1$ gzip -n9 ~/.local/share/man/man1/st.1
bash-5.1$

To change the foreground and background colours edit config.def.h.

      "#555555",
+    "#eeeeee",
+    "#114488",

[   ]


FAQ