My own clone of suckless st with custom patches and settings kept in the "custom" branch.
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.
 
 
 
Roberto E. Vargas Caballero 98b6f84bfc Check alternative screen before drawing box selection
Some programs use the alternative screen (vi, less, ...), whose
content is different of the main screen. If you select text in one of
the screen, you don't wait the box selection is painted in the other
screen, so it is necessary check if the selection was done in the same
screen we are going to paint. Before to this commit, you could do
something like:

	$ LESS="" ls | less
	(select some code)
	q

and selection box remains drawing in the main screen, but the content
of selection keeps text of the alternate screen.
---
 st.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
12 years ago
.hgtags Added tag 0.2.1 for changeset 108926a0fe61 13 years ago
LICENSE Applying the patches of k0ga and changing the LICENSE file in the appropriate 12 years ago
Makefile Adding setb and setf and a comment about terminfo installation. 12 years ago
README update README. 14 years ago
TODO Add OSC, DSC, PM, APC and settitle. 12 years ago
config.def.h fix default color overwriten bug. 13 years ago
config.mk Implement Xdbe-based double-buffering 12 years ago
st.1 Add -g geometry to st and the manpage. 12 years ago
st.c Check alternative screen before drawing box selection 12 years ago
st.info Fixing a type in in2 in the st.info. 12 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 don't install st, define TNAME to "xterm" in config.h or make sure to at
least compile st terminfo entry with the following command:

    tic -s st.info

It should print the path of the compiled terminfo entry. You can
safely remove it if you don't plan to use st anymore.
See the man page for additional details.

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