My fork of the Suckless Simple Terminal (st).
Go to file
Roberto E. Vargas Caballero 55087ec2c7 Add application cursor sequences for Home
The commit 'Fixing some key issues with mc' fix the problem where mc didn't
recognize home key because the generated code and the terminfo entry were
different (terminfo khome = \E[1~ but generates \033[H).

Home key in ansi mode should generate the sequence CUP (\033[H) to 0,0 (home
position), but it is also interesting generate a application code which
identifies the key. Real vt520 only generates the ansi sequence CUP, linux
console generates only the application code \033[1~, xterm generates CUP in
ansi mode and \033OH in cursor application mode, rxvt only generates the
application code \033[7~.

This patch sets CUP in ansi mode and \033[1~ in cursor application mode, so
it can be used in both modes and the application mode value is similar to
near values (insert = \033[2~, Prior = \033[5~, Next = \033[6~, End =
\033[4~, Supr = \033[3).
---
 config.def.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
2012-11-16 11:32:17 +01:00
.hgtags Added tag 0.3 for changeset 9d54ce4daf34 2012-11-02 20:08:51 +01:00
FAQ Adding a FAQ to reference utmp(1). 2012-10-31 20:36:32 +01: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 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 Changing the TODO to the current state. 2012-11-15 16:36:48 +01:00
config.def.h Add application cursor sequences for Home 2012-11-16 11:32:17 +01:00
config.mk The style inquisition was here again. 2012-11-13 20:13:39 +01:00
st.1 This changes -f to be the parameter for the font. Now -f is -o. 2012-09-30 20:23:10 +02:00
st.c Getbuttoninfo is always used the same and just a helper function. Shrinking it 2012-11-15 21:42:58 +01:00
st.info Import the patch of Eckehard Berns to add insert mode. Thanks! 2012-11-15 16:21:23 +01: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.