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 6e1c7c8afc Fix match function bugs
There were two problems with match denfinition.

1) There was a forward declaration in the form:

	static inline bool match(uint, uint);

but later the function was defined as:

	inline bool
	match(uint mask, uint state) {

This causes that there were two different functions in the code, one local
and inline, and other inline but extern. All was working without problems
due to we were using -Os, and the compiler was using the extern definition
and it was no expanding the static declaration. If you removed the -Os flag,
then you got linker errors due it was no able to find the static definition
of the static declaration.

2) The mask checking was incorrect because we were doing the test:

	(state & mask) != state

and this test only was saying that at least all the enabled bits of state
were enabled also in mask, but no all the possible bits in mask. This was
the origin of the bug reported by Xavier Cartron, where he said it was
possible activated some shortcuts with some of the modifiers defined in the
config.h file.
12 years ago
FAQ \033 should be used in printf in the FAQ. 12 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 Updating the TODO file for after 0.4. 12 years ago
arg.h Adopting arg.h with more flexible cmd handling. 12 years ago
config.def.h fix PageUp Modifier Mask in config.def.h 12 years ago
config.mk 0.4.1 release. 12 years ago
st.1 Fix the geometry handling. 12 years ago
st.c Fix match function bugs 12 years ago
st.info Enable blinking in st. 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 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.