diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-13 00:53:58 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-13 00:53:58 +0300 |
commit | 8c6de6cc718debf44f6056a4c34c4fbb13bc5020 (patch) | |
tree | a522cb6d5608b3a4ba08fdb8a3f840514eb07281 /doc | |
parent | 078c1927cffc6514168566c267151a8d6eca7367 (diff) | |
download | sciteco-8c6de6cc718debf44f6056a4c34c4fbb13bc5020.tar.gz |
allow changing the default clipboard by setting the `~` integer
* It continues to default to 67 (C), which is the system clipboard.
But you can now overwrite it e.g. by adding `^^PU~` to the profile.
* This fixes a minor memory leak:
If you set one of the clipboard registers in the profile (initializing
them as plain registers), the clipboard register had been leaked.
The clipboard registers now replace any existing register,
while at the same time preserving the numeric part.
* All remaining Q-Reg table insertions use a new function
teco_qreg_table_insert_unique() which adds an assertion, so that
we notice any future possible memory leaks.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sciteco.7.template | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index ba43ac2..16a54a6 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -1591,6 +1591,15 @@ 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. +.br \*(ST supports two ways of driving the clipboard on ncurses. .SCITECO_TOPIC OSC-52 xterm First of all, there is built-in support for OSC-52 escape sequences, @@ -1638,8 +1647,6 @@ 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 |