From f421c8fcf3c47c78c666906165006969ff21429e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 27 Feb 2025 11:38:42 +0300 Subject: implemented ncurses clipboard support via external processes * As an alternative to OSC-52, which is rarely supported by terminal emulators. * Makes the new mouse support much more useful since you rely on good builtin clipboard support. You can no longer e.g. just double-click a word to copy it into the "primary" selection as terminal emulators do by default. * Set $SCITECO_CLIPBOARD_SET/GET e.g. to xclip, way-copy, pbcopy or some wrapper script. * This is currently using POSIX-specific popen() API, so it behaves a bit different to command execution via EC/EG. I am not sure if it's worth rewriting with the GSpawn-API, since it will be used only on POSIX anyway and a GSpawn-based implementation is likely to be a bit larger. * Should there be some small command-line utility for interacting (esp. pasting) via OSC-52, built-in OSC-52 support could well be removed from SciTECO. Currently, I know only of https://github.com/theimpostor/osc/ and it requires very recent Go compilers. (I still haven't tested it. Quite possibly, pasting when run as a piped command is impossible.) --- TODO | 5 ----- 1 file changed, 5 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index cbe1714..289e724 100644 --- a/TODO +++ b/TODO @@ -390,11 +390,6 @@ Features: Clipboards are not flexible enough and not supported everywhere. I am not sure how to elegantly address instances, though. Especially without some kind of central name registry. - * Generic clipboard support via optional libclipboard support. - This would mainly benefit the ncurses version, especially when enabling - mouse support. - But it may be beneficial to support it on all other Curses-variants - and on Gtk as well. * Touch restored save point files - should perhaps be configurable. This is important when working with Makefiles, as make looks at the modification times of files. -- cgit v1.2.3