robert ea7cd7b62f Fix mousereport
This patch replaces the previous one I sent.

The following changes are made in this patch:
 - Fix tracking of pressed buttons. Previously, pressing two buttons and
   then releasing one would make st think no buttons are pressed, which
   in particular broke MODE_MOUSEMOTION.
 - Always send the lowest-numbered pressed button on motion events; when
   no button is pressed for a motion event in MODE_MOUSEMANY, then send
   a release. This matches the behaviour of xterm. (Previously, st sent
   the most recently pressed button in the motion report.)
 - Remove UB (?) access to potentially inactive struct member
   e->xbutton.button of XEvent union.
 - Fix (unlikely) possibility of overflow for large button numbers.

The one discrepancy I found between st and xterm is that xterm sometimes
encodes buttons with large numbers (>5) strangely. E.g., xterm reports
presses of buttons 8 and 9 as releases, whereas st properly (?) encodes
them as presses.
2022-01-10 17:04:01 +01:00
2018-03-20 21:22:27 +01:00
2022-01-07 12:39:57 +01:00
FAQ
2022-01-02 12:16:57 +01:00
2012-09-18 19:08:03 +02:00
2020-06-17 23:49:40 +02:00
2020-04-11 15:23:20 +02:00
2021-12-30 18:37:17 +01:00
2021-12-26 18:57:44 +01:00
2015-04-13 17:06:11 +02:00
2020-10-18 11:17:11 +02:00
x.c
2022-01-10 17:04:01 +01:00

st - simple terminal
--------------------
st is a simple 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 -sx 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.

Description
Luke's fork of the suckless simple terminal (st) with vim bindings and Xresource compatibility.
Readme 2.6 MiB
Languages
C 93%
Shell 3.2%
Roff 2.3%
Makefile 1.5%