My Suckless Terminal Build
Find a file
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().
2013-09-04 18:33:02 +02:00
arg.h Adopting arg.h with more flexible cmd handling. 2013-04-03 21:00:38 +02:00
config.def.h Correctly initialize altscreen when defaultbg is not 0. 2013-09-04 18:33:02 +02:00
config.mk 0.4.1 release. 2013-04-20 15:29:39 +02:00
FAQ Tmux is using C-b by default. 2013-08-22 19:32:49 +02:00
LEGACY LEGACY: typo. 2012-09-18 19:08:03 +02:00
LICENSE Changing the license to MIT/X. 2012-11-05 04:02:20 +01:00
Makefile Applying the changes to the docs; by Peter Hartman. 2013-01-05 20:30:25 +01:00
README Applying the changes to the docs; by Peter Hartman. 2013-01-05 20:30:25 +01:00
st.1 Fix the geometry handling. 2013-04-13 15:24:26 +02:00
st.c Correctly initialize altscreen when defaultbg is not 0. 2013-09-04 18:33:02 +02:00
st.info Add terminfo definitions for terminals with meta key 2013-08-12 16:53:09 +02:00
TODO Use character size scaling factors 2013-08-05 11:44:18 +02:00

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.