diff options
| author | Erik Moen | 2019-08-27 22:48:15 +0200 |
|---|---|---|
| committer | Erik Moen | 2019-08-27 22:48:15 +0200 |
| commit | 9e58877c354b378da4f56972df3e2be5d669dfe4 (patch) | |
| tree | 705eabfe36a0a82f3ef7bb3c8677063189f3646f /x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch | |
| parent | 0465f9b9afb55f0b9f88a368276e9a1fe54e3c19 (diff) | |
| download | eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.gz eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.bz2 eroen-overlay-9e58877c354b378da4f56972df3e2be5d669dfe4.tar.xz | |
vte-0.54.4 from gentoo + vte-ng
Signed-off-by: Erik Moen <eroen-overlay@occam.eroen.eu>
Diffstat (limited to 'x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch')
| -rw-r--r-- | x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch b/x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch new file mode 100644 index 00000000..169abf5a --- /dev/null +++ b/x11-libs/vte/files/vte-0.54.2-ng/02-expose-function-for-setting.patch @@ -0,0 +1,61 @@ +expose function for setting cursor position + +From: Jelle van der Waa <jelle@vdwaa.nl> + + +--- + src/vte/vteterminal.h | 5 +++++ + src/vtegtk.cc | 24 ++++++++++++++++++++++++ + 2 files changed, 29 insertions(+) + +diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h +index a41ec359..fe90a374 100644 +--- a/src/vte/vteterminal.h ++++ b/src/vte/vteterminal.h +@@ -383,6 +383,11 @@ _VTE_PUBLIC + void vte_terminal_get_cursor_position(VteTerminal *terminal, + glong *column, + glong *row) _VTE_GNUC_NONNULL(1); ++_VTE_PUBLIC ++void vte_terminal_set_cursor_position(VteTerminal *terminal, ++ glong column, ++ glong row) _VTE_GNUC_NONNULL(1); ++ + + _VTE_PUBLIC + char *vte_terminal_hyperlink_check_event(VteTerminal *terminal, +diff --git a/src/vtegtk.cc b/src/vtegtk.cc +index f0f3f3e8..17be4728 100644 +--- a/src/vtegtk.cc ++++ b/src/vtegtk.cc +@@ -2415,6 +2415,30 @@ vte_terminal_get_cursor_position(VteTerminal *terminal, + } + } + ++/** ++ * vte_terminal_set_cursor_position ++ * @terminal: a #VteTerminal ++ * @column: the new cursor column ++ * @row: the new cursor row ++ * ++ * Set the location of the cursor. ++ */ ++void ++vte_terminal_set_cursor_position(VteTerminal *terminal, ++ long column, long row) ++{ ++ g_return_if_fail(VTE_IS_TERMINAL(terminal)); ++ ++ auto impl = IMPL(terminal); ++ impl->invalidate_cursor_once(FALSE); ++ impl->m_screen->cursor.col = column; ++ impl->m_screen->cursor.row = row; ++ impl->invalidate_cursor_once(FALSE); ++ impl->check_cursor_blink(); ++ impl->queue_cursor_moved(); ++ ++} ++ + /** + * vte_terminal_pty_new_sync: + * @terminal: a #VteTerminal |
