summaryrefslogtreecommitdiff
path: root/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch')
-rw-r--r--x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch b/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch
new file mode 100644
index 00000000..dbb158b3
--- /dev/null
+++ b/x11-libs/vte/files/vte-0.44.2-ng/01-expose-functions-for-pausing.patch
@@ -0,0 +1,64 @@
+expose functions for pausing unpausing output
+
+From: Jelle van der Waa <jelle@vdwaa.nl>
+
+
+---
+ src/vte/vteterminal.h | 6 ++++++
+ src/vtegtk.cc | 26 ++++++++++++++++++++++++++
+ 2 files changed, 32 insertions(+)
+
+diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
+index 38ea8c3..453d807 100644
+--- a/src/vte/vteterminal.h
++++ b/src/vte/vteterminal.h
+@@ -167,6 +167,12 @@ void vte_terminal_feed_child_binary(VteTerminal *terminal,
+ const guint8 *data,
+ gsize length) _VTE_GNUC_NONNULL(1);
+
++_VTE_PUBLIC
++void vte_terminal_connect_pty_read(VteTerminal *terminal);
++
++_VTE_PUBLIC
++void vte_terminal_disconnect_pty_read(VteTerminal *terminal);
++
+ /* Copy currently-selected text to the clipboard, or from the clipboard to
+ * the terminal. */
+ _VTE_PUBLIC
+diff --git a/src/vtegtk.cc b/src/vtegtk.cc
+index a2591b4..ef868a5 100644
+--- a/src/vtegtk.cc
++++ b/src/vtegtk.cc
+@@ -2336,6 +2336,32 @@ vte_terminal_feed_child(VteTerminal *terminal,
+ }
+
+ /**
++ * vte_terminal_connect_pty_read:
++ * @terminal: a #VteTerminal
++ *
++ * Unpause output
++ */
++void
++vte_terminal_connect_pty_read(VteTerminal *terminal)
++{
++ g_return_if_fail(VTE_IS_TERMINAL(terminal));
++ IMPL(terminal)->connect_pty_read();
++}
++
++/**
++ * vte_terminal_disconnect_pty_read:
++ * @terminal: a #VteTerminal
++ *
++ * Pause output
++ */
++void
++vte_terminal_disconnect_pty_read(VteTerminal *terminal)
++{
++ g_return_if_fail(VTE_IS_TERMINAL(terminal));
++ IMPL(terminal)->disconnect_pty_read();
++}
++
++/**
+ * vte_terminal_feed_child_binary:
+ * @terminal: a #VteTerminal
+ * @data: data to send to the child