aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-16 00:15:33 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-16 00:15:33 +0300
commit4794367ce0c31f820bf2bd72d44c886984e3f7ed (patch)
tree1cfcdfe5c394240fe728d7f959a7cac636df478d /doc
parent21e775679f6a06a07568261eec1e2771d49adf63 (diff)
downloadsciteco-4794367ce0c31f820bf2bd72d44c886984e3f7ed.tar.gz
the primary clipboard is now chosen by the 10th bit in the ED flags
* `[q]~` was broken and resulted in crashes since it reset the clipboard character to 0. In fact, if we don't want to break the `[a]b` idiom we cannot use the numeric cell of register `~`. * Therefore we no longer use the numeric part of register `~`. Once the clipboard registers are initialized they completely replace any existing register with the same name that may have been set in the profile. So we still don't leak any memory. (But perhaps it would now be better to fail with an error if one of the clipboard registers already exist?) * Instead, bit 10 (1024) of ED is now used to change the default clipboard to the primary selection. The alternative might have been an EJ flag or even a special register containing the name of the default clipboard register. * partially reverses 8c6de6cc718debf44f6056a4c34c4fbb13bc5020
Diffstat (limited to 'doc')
-rw-r--r--doc/sciteco.7.template14
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template
index 16a54a6..a289476 100644
--- a/doc/sciteco.7.template
+++ b/doc/sciteco.7.template
@@ -1591,14 +1591,10 @@ The existence of a clipboard register can thus be checked
in macros to determine whether getting and modifying that
particular clipboard is supported natively.
.br
-If there are multiple clipboard registers, you can choose
-the default one via the ASCII code in the numeric cell of
-register \(lq~\(rq, which defaults to 67 (\(lq~C\(rq).
-For instance if setting \(lq^^PU~\(rq, register \(lq~\(rq
-and register \(lq~P\(rq will refer to the same primary
-clipboard.
-The numeric parts of all the other clipboard registers are
-currently not used by \*(ST.
+The default clipboard \(lq~\(rq refers to the clipboard selection
+if there are multiple clipboards.
+You can set bit 10 of the \fBED\fP flags to change it to the
+primary clipboard.
.br
\*(ST supports two ways of driving the clipboard on ncurses.
.SCITECO_TOPIC OSC-52 xterm
@@ -1647,6 +1643,8 @@ EOL normalization will take place (if enabled), so that pasting
clipboards does not introduce unexpected EOL sequences.
The Q-Register view's EOL mode will \fBnot\fP be guessed from
the original clipboard contents, though.
+The numeric parts of the clipboard registers are
+currently not used by \*(ST.
.TP
.BI ^K key
Key macro registers as documented in section