Personal st configuration
Go to file Use this template
Roberto E. Vargas Caballero b9d5fec4f2 Add xmalloc and xrealloc wrappers
If malloc  or realloc fail they return NULL. Theorically this condition
should be tested in the code, but it's a strange condition today (basically
if this is hapenning thenyou have a big problem), and even Linux never returns
NULL in the default configuration (only if the process don't have room in
the space address, something a bit impossible in the case of st). But stis
enough small for being executed in low resources computers where this can be
a real problem. So the easy way is creating a wrappers function for them and
call to die in case of error.
---
 st.c |   44 +++++++++++++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 13 deletions(-)
2012-09-12 21:25:35 +02:00
.hgtags Added tag 0.2.1 for changeset 108926a0fe61 2012-02-16 01:05:26 +01:00
LICENSE Applying the patches of k0ga and changing the LICENSE file in the appropriate 2012-08-29 20:01:34 +02:00
Makefile Adding setb and setf and a comment about terminfo installation. 2012-08-29 21:13:47 +02:00
README update README. 2011-04-03 21:40:33 +02:00
TODO Adding the removal of the timeouts to the TODO. 2012-09-05 23:06:59 +02:00
config.def.h Implement italic font support. 2012-09-05 21:48:26 +02:00
config.mk Implement Xdbe-based double-buffering 2012-07-28 14:27:26 +02:00
st.1 Add -g geometry to st and the manpage. 2012-09-03 23:02:29 +02:00
st.c Add xmalloc and xrealloc wrappers 2012-09-12 21:25:35 +02:00
st.info Implement italic font support. 2012-09-05 21:48:26 +02:00

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.