a fork of https://st.suckless.org with some patches and zig build
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Mark Edgar 4245ba0d12 Correctly initialize altscreen when defaultbg is not 0.
The alternate screen is not properly initialized when st starts. To see
this, set defaultbg in config.h to anything other than 0 (for example, swap
defaultfg and defaultbg), and run:

./st -e sh -c 'tput smcup; read'

You should see that the top-left 80x24 rectangle is black (or whatever
colorname[0] is), while the rest of the screen (if any) has the desired
colorname[defaultbg] color.

The attached patch fixes this by initializing term.c.attr in tnew() before
calling tresize(). It also removes the unnecessary xcalloc() calls, which
misled me on this bug hunt since it is really tclearregion() which
initializes term.lines and term.alt in tresize().
11 years ago
FAQ Tmux is using C-b by default. 11 years ago
LEGACY LEGACY: typo. 12 years ago
LICENSE Changing the license to MIT/X. 12 years ago
Makefile Applying the changes to the docs; by Peter Hartman. 12 years ago
README Applying the changes to the docs; by Peter Hartman. 12 years ago
TODO Use character size scaling factors 11 years ago
arg.h Adopting arg.h with more flexible cmd handling. 12 years ago
config.def.h Correctly initialize altscreen when defaultbg is not 0. 11 years ago
config.mk 0.4.1 release. 12 years ago
st.1 Fix the geometry handling. 12 years ago
st.c Correctly initialize altscreen when defaultbg is not 0. 11 years ago
st.info Add terminfo definitions for terminals with meta key 11 years ago

README

st - simple terminal
--------------------
st is a simple virtual terminal emulator for X which sucks less.


Requirements
------------
In order to build st you need the Xlib header files.


Installation
------------
Edit config.mk to match your local setup (st is installed into
the /usr/local namespace by default).

Afterwards enter the following command to build and install st (if
necessary as root):

    make clean install


Running st
----------
If you did not install st with make clean install, you must compile
the st terminfo entry with the following command:

    tic -s st.info

See the man page for additional details.

Credits
-------
Based on Aurélien APTEL <aurelien dot aptel at gmail dot com> bt source code.