Commit Graph

158 Commits

Author SHA1 Message Date
bakkeby
a1d06b7b98 Update FAQ with the last modifications 2020-04-20 10:39:06 +02:00
bakkeby
ef971e1f67 Add terminfo entries for backspace mode
St used to use backspace as BS until the commit 230d0c8, but due
to general lack of knowledge of lusers, we moved to the most common
configuration in linux to avoid answering the same question 3 times
per month. With the most common configuration we have a backspace
that returns a DEL, and we have a Delete key that doesn't return a
DEL character neither a BS.

When dealing with devices connected using a serial line (or even
with Plan9) it is more common Backspace as BS and Delete as DEL. For
this reason, st is not always the best tool when you talk with a
serial device.

This patch adds new terminfo entries for Backspace as BS and Delete
as DEL. A patch for confg.h is also added, to make easier switch
between both configurations.
2020-04-20 10:32:04 +02:00
bakkeby
2797bd3144 Fix style issue 2020-04-20 10:30:19 +02:00
bakkeby
fe6e6324d7 ttyread: test for EOF while reading tty
When a read operation returns 0 then it means that we arrived to the end of the
file, and new reads will return 0 unless you do some other operation such as
lseek(). This case happens with USB-232 adapters when they are unplugged.
2020-04-20 10:29:26 +02:00
bakkeby
2090981be3 Add support for scroll(1)
Scroll is a program that stores all the lines of its child and be used in st as
a way of implementing scrollback.

This solution is much better than implementing the scrollback in st itself
because having a different program allows to use it in any other program
without doing modifications to those programs.
2020-04-20 10:24:34 +02:00
bakkeby
2465559051 [st][PATCH] Update XIM cursor position only if changed
Updating XIM cursor position is expensive, so only update it when cursor
position changed.
2020-04-16 11:19:33 +02:00
bakkeby
f7b0d77a03 make argv0 not static, fixes a warning with tcc (fcd339) 2020-04-10 13:57:14 +02:00
bakkeby
56ff8cd7c7 [st][scrollback] Update for latest git 2020-04-05 18:09:50 +02:00
bakkeby
914cee019d [st] mouseshortcuts: fix custom modifier on release (4c84ac4) 2020-04-02 16:30:40 +02:00
bakkeby
d230df0802 Correcting link to patches.h following move to patches.def.h 2020-04-02 12:43:58 +02:00
bakkeby
7dee587ceb Adding workingdir patch 2020-03-29 16:46:38 +02:00
bakkeby
d26b46ffa7 Adding invert patch 2020-03-29 15:38:16 +02:00
bakkeby
4966f31256 Custom changes to make the altscreen mouse scollback patch working with latest version of st 2020-03-24 20:05:07 +01:00
bakkeby
87b8b9cf48 Remove explicit XNFocusWindow (f618b1) 2020-03-24 15:42:47 +01:00
bakkeby
baf5955e45 x: fix XIM handling (8888e3) 2020-03-24 15:41:43 +01:00
bakkeby
2e2d10eca6 x: check we still have an XIC context before accessing it (ce060a) 2020-03-24 15:37:28 +01:00
bakkeby
e22dab0391 x: do not instantiate a new nested list on each cursor move (b67c9b) 2020-03-24 15:36:22 +01:00
bakkeby
7c7d16b843 x: move IME variables into XWindow ime embedded struct (2f6ef4) 2020-03-24 15:34:12 +01:00
bakkeby
fac82e981c Increase XmbLookupString buffer (f5fd0c) 2020-03-24 14:28:43 +01:00
bakkeby
94ade62f52 update FAQ (7c405f) 2020-03-24 14:27:45 +01:00
bakkeby
2de79ac677 OSC 52 - copy to clipboard: don't limit to 382 bytes (7a018b) 2020-03-24 14:25:10 +01:00
bakkeby
0d5ea3a3f2 CSIEscape, STREscape: use size_t for buffer length (b3ccac) 2020-03-24 14:23:28 +01:00
bakkeby
2da5aca965 STREscape: don't trim prematurely (d98c43) 2020-03-24 14:22:09 +01:00
bakkeby
5f311ddc78 base64dec: don't read out of bounds (0b2eb9) 2020-03-24 14:21:08 +01:00
bakkeby
63b2d856cf Fix tmux terminfo extensions Se and Ss (1d4f60) 2020-03-24 14:18:19 +01:00
bakkeby
be0f0d56e5 apply hints before initial mapping (ICCCM) (843cfe) 2020-03-24 14:17:17 +01:00
bakkeby
c90ac5e476 mouse shortcuts: allow using forcemousemod (e.g. shift) (4c7150) 2020-03-24 14:16:02 +01:00
bakkeby
0cdfd86e5e mouse shortcuts: don't hardcode selpaste (ff828c) 2020-03-24 14:14:10 +01:00
bakkeby
ed7837a816 mouse shortcuts: allow override for all shortcuts (7729e7) 2020-03-24 14:08:08 +01:00
bakkeby
584f3928ad mouse shortcuts: allow same functions as kb shortcuts (410651) 2020-03-24 14:02:44 +01:00
bakkeby
4aa6989993 config.def.h: remove crlf value section (938580) 2020-03-24 13:56:40 +01:00
bakkeby
a15712c2e6 FAQ: add entry about color emoji Xft bug (bbb3e5) 2020-03-24 13:54:27 +01:00
bakkeby
78d1d7c181 selection: fix view to match actual selection on first cell (3c7ecf) 2020-03-24 13:52:56 +01:00
bakkeby
87c1d1e598 revert part of commit add0211522737b79dad990ccd65c8af63b5cc1dd (cae586) 2020-03-24 13:51:45 +01:00
bakkeby
d8b8f94d64 dont print color warning on color reset OSC 104 without parameter (294808) 2020-03-24 13:49:57 +01:00
bakkeby
fa3d47596d minor code-style, initialize var at the top of function (2d4ee4) 2020-03-24 13:49:01 +01:00
bakkeby
9e18ce3cb1 config.def.h: tweak extra worddelimiters (057e32) 2020-03-24 13:47:39 +01:00
bakkeby
f86b641b5f use iswspace()/iswpunct() to find word delimiters (5cc1dd) 2020-03-24 13:41:19 +01:00
bakkeby
42f401b428 replace utf8strchr with wcschr (4b51e7) 2020-03-24 13:38:27 +01:00
bakkeby
4e0216a94a Adding st to .gitignore 2020-03-24 11:35:58 +01:00
bakkeby
d7c5b9f40b fixime strikethrough 2020-03-24 11:34:18 +01:00
bakkeby
f09c417473 be silent about explicitly unhandled mouse modes (9216d5) 2020-03-24 11:33:22 +01:00
bakkeby
e7cfd5ae16 better Input Method Editor (IME) support (35f7db) 2020-03-24 11:25:39 +01:00
bakkeby
9f1a2db7c5 Adding font2 patch as per request #3 2020-03-21 16:41:43 +01:00
bakkeby
188ec2fa1c Moving patches.h to patches.def.h to match that of config 2020-01-26 16:21:54 +01:00
bakkeby
352170eec8 Adding st embedder patch 2020-01-07 14:05:53 +01:00
bakkeby
e76c4c0637 Fix for Neovim Crashes On Open #1 2019-11-21 10:19:26 +01:00
bakkeby
7b7372fda4 Adding comment for FIXKEYBOARDINPUT_PATCH 2019-11-21 10:18:47 +01:00
bakkeby
dc915b6056 Adding note about flexipatch-finalizer 2019-10-16 12:05:53 +02:00
bakkeby
cfecd195ba Adding relativeborder, fix-keyboard-input, iso14755, visualbell, rightclicktoplumb, boxdraw and keyboard-select patches 2019-09-17 15:16:22 +02:00