DustVoice's st (from suckless.org) fork
b9d5fec4f2
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(-) |
||
---|---|---|
.hgtags | ||
config.def.h | ||
config.mk | ||
LICENSE | ||
Makefile | ||
README | ||
st.1 | ||
st.c | ||
st.info | ||
TODO |
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.