On 2/24/22 23:12, Frederick Eaton wrote:
But all the other interactive programs I use are based
on Readline, and so I can't use the X clipboard with them, like I do
with my custom bindings in Zsh and Emacs. If I could paste from the X
clipboard (or some other shared clipboard) within Readline, then I
think I would have no need for bracketed-paste-mode.
What do you mean you can't paste from the X clipboard? That is what
bracketed-paste-mode is meant to support. Most modern terminal emulators
have a key-binding to paste from the clipboard. On Unix-like systems
it is usually Ctrl-Shift-V and/or Shift-Insert.
What are harder problem is
(a) the reverse problem: copying to clipboard; and
(b) co-oordinating with the X selection.
A related problem is that one should be able move the readline cursor
by clicking with the mouse. (The DomTerm terminal implements this by sending
left-arrow/right-arrow commands as needed, when emabled by certain escape
sequences.)t
--
--Per Bothner
[email protected] http://per.bothner.com/