DustVoice's st (from suckless.org) fork
Find a file
Avi Halachmi (:avih) 2e54a21b5a OSC 52 - copy to clipboard: don't limit to 382 bytes
Strings which an application sends to the terminal in OSC, DCS, etc
are typically small (title, colors, etc) but one exception is OSC 52
which copies text to the clipboard, and is used for instance by tmux.

Previously st cropped these strings at 512 bytes, which for OSC 52
limited the copied text to 382 bytes (remaining buffer space before
base64). This made it less useful than it can be.

Now it's a dynamic growing buffer. It remains allocated after use,
resets to 512 when a new string starts, or leaked on exit.

Resetting/deallocating the buffer right after use (at strhandle) is
possible with some more code, however, it doesn't always end up used,
and to cover those cases too will require even more code, so resetting
only on new string is good enough for now.
2019-11-10 22:45:54 +01:00
arg.h don't modify argv, use a counter 2018-03-20 21:22:27 +01:00
config.def.h mouse shortcuts: don't hardcode selpaste 2019-10-13 21:46:31 +02:00
config.mk bump version to 0.8.2 2019-02-09 12:48:39 +01:00
FAQ FAQ: add entry about color emoji Xft bug 2019-05-17 13:00:10 +02:00
LEGACY LEGACY: typo. 2012-09-18 19:08:03 +02:00
LICENSE LICENSE: fix a few years 2018-03-14 20:08:00 +01:00
Makefile Makefile: fix dependencies on config.h 2019-01-04 12:33:01 +01:00
README tic -s -> tic -sx (Treat unknown capabilities as user-defined.) 2016-11-14 19:05:47 +01:00
st.1 Remove the ISO 14755 feature 2018-09-11 19:05:55 +02:00
st.c OSC 52 - copy to clipboard: don't limit to 382 bytes 2019-11-10 22:45:54 +01:00
st.h mouse shortcuts: allow same functions as kb shortcuts 2019-10-13 21:46:31 +02:00
st.info Fix tmux terminfo extensions Se and Ss 2019-11-05 19:51:35 +01:00
TODO Remove old TODO entry. 2015-04-13 17:06:11 +02:00
win.h better Input Method Editor (IME) support 2019-02-12 18:45:15 +01:00
x.c apply hints before initial mapping (ICCCM) 2019-10-26 11:47:24 +02: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.