applied st-scrollback.diff
Add Mod + Shift + c/v and no selclear. Thanks to Alex Pilon <alp@alexpilon.ca>! Now there is a distinction between the primary and clipboard selection. With Mod + Shift + c/v the clipboard is handled. The old Insert behavious does reside.
Allow combinations with Backspace XN_ANY_MOD makes that any combination of backspace will return always DEL. This patch lets to X to decide which value returns.
Backspace value shouldn't depend on keypad state
Finally resolving the backspace problem. The majority now using the Linux behaviour. Minorities have to live in their ghettos.
Removing an extra space.
Implementing xzoomreset. Thanks mvdan@mvdan.cc for proposing this.
Add support for utmp in st St runs an interactive shell and not a login shell, and it means that profile is not loaded. The default terminal configuration in some system is not the correct for st, but since profile is not loaded there is no way of getting a script configures the correct values. St doesn't update the utmp files, this is the job of another suckless tool, utmp. Utmp also opens a login shell (it is the logical behaviour when you create a new user record) it is a good option execute utmp and then get a correct input in utmp, wtmp and lastlog file, and execute the content of the profile.
Make useful DEL in application mode DEL key has to generate the sequence ^[P in application mode, because such sequence means delete current character. It implies that the character sent in keypad mode must be ^? (DEL character).
Convert VT102ID to a config variable VT102ID is the sequence that the terminal returns when it is inquired to identify itself. This value should be configurable in the same way that another st parameters.
Fix typo in config.def.h Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
Allow mouse selection override using ShiftMask Similar to xterm or urxvt holding shift before selecting text with the mouse allows to override copying text. For example in tmux with "mode-mouse on" or vim (compiled with --with-x), mc, htop, etc. forceselmod in config.h sets the modifier to use this mode, by default ShiftMask. Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Do not export chscale and cwscale.
Fix Backspace and Delete characters
Backspace key must generate the backspace character (\010) and
Delete key must generate the delete character (\0177). In
some systems the kernel configuration for erasing previous character
is \0177, so some programs (for example cat, ed, mail, ...), can not
understand the correct meaning of backspace. In this cases it is only
needed this command:
stty erase \b
Add sequence for printing the current selection This is very usefull in order to can select what is sent to the plumber.
Add key definition for printer sequences These new combinations generate the same behaviour (basically) of vt102. It is a good way of communicating st with other programs. [0] http://www.vt100.net/docs/vt102-ug/chapter2.html
Make Shift+Home equal to CLS in ascii mode
Make CONTROL + DELETE delete a line If CONTROL + INSERT inserts a line then it seems natural CONTROL + DELETE removes a line.
Fix SHIFT+DEL definition The AppMode and AsciiMode were inverted in the definition of this combination. Signed-off-by: Christoph Lohmann <20h@r-36.net>
Replace alignment tabs with spaces.