From 61ff6e97c57f62ee3ad4ffc2166e433bc060e7cb Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 16 Aug 2016 05:04:54 +0200 Subject: 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. --- src/ioview.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/ioview.h') diff --git a/src/ioview.h b/src/ioview.h index 83517b5..18a3be6 100644 --- a/src/ioview.h +++ b/src/ioview.h @@ -124,20 +124,10 @@ class IOView : public ViewCurrent { }; public: - static GIOStatus channel_read_with_eol(GIOChannel *channel, - gchar *buffer, gsize buffer_len, - gsize &read_len, - guint &offset, gsize &block_len, - gint &state, gint &eol_style, - gboolean &eol_style_inconsistent, - GError **error = NULL); - - GIOStatus load(GIOChannel *channel, GError **error = NULL); + void load(GIOChannel *channel); void load(const gchar *filename); - GIOStatus save(GIOChannel *channel, guint position, gsize len, - gsize *bytes_written, gint &state, GError **error = NULL); - gboolean save(GIOChannel *channel, GError **error = NULL); + void save(GIOChannel *channel); void save(const gchar *filename); }; -- cgit v1.2.3