aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-curses/interface-curses.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2016-08-16 05:04:54 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2016-08-19 03:29:11 +0200
commit61ff6e97c57f62ee3ad4ffc2166e433bc060e7cb (patch)
tree64c032ebdd040809d1b7e822e627e199a9c2476e /src/interface-curses/interface-curses.h
parent94b041ec331427fd63cdae3e943efe825d1bbf14 (diff)
downloadsciteco-61ff6e97c57f62ee3ad4ffc2166e433bc060e7cb.tar.gz
Integrated clipboard support
* mapped to different registers beginning with "~" * on supported platforms accessing the clipboard is as easy as X~ or G~. Naturally this also allows clipboards to be pasted in string arguments/insertions (^EQ~). * Currently, Gtk+, PDCurses and ncurses/XTerm are supported. For XTerm clipboard support, users must set 0,256ED to enable it since we cannot check for XTerm window ops programmatically (at least without libX11). * When clipboard regs exist, the clipboard can also be deemed functional. This allows macros to fall back to xclip(1) if necessary. * EOL handling has been moved into a new file eol.c and eol.h. EOL translation no longer depends on GIOChannels but can be memory-backed as well.
Diffstat (limited to 'src/interface-curses/interface-curses.h')
-rw-r--r--src/interface-curses/interface-curses.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface-curses/interface-curses.h b/src/interface-curses/interface-curses.h
index f29b1b4..d036d37 100644
--- a/src/interface-curses/interface-curses.h
+++ b/src/interface-curses/interface-curses.h
@@ -142,6 +142,12 @@ public:
/* implementation of Interface::cmdline_update() */
void cmdline_update_impl(const Cmdline *cmdline);
+ /* override of Interface::set_clipboard() */
+ void set_clipboard(const gchar *name,
+ const gchar *str = NULL, gssize str_len = -1);
+ /* override of Interface::get_clipboard() */
+ gchar *get_clipboard(const gchar *name, gsize *str_len = NULL);
+
/* implementation of Interface::popup_add() */
inline void
popup_add_impl(PopupEntryType type,
@@ -177,6 +183,8 @@ private:
void init_interactive(void);
void restore_batch(void);
+ void init_clipboard(void);
+
void resize_all_windows(void);
void set_window_title(const gchar *title);