From d047f3644801b94f981fc29814a10a66c513266a Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 7 Apr 2019 17:04:38 +0200 Subject: [PATCH] vte itf, bind methods to get num rows & columns --- etc/terminal/gtk2term.pas | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etc/terminal/gtk2term.pas b/etc/terminal/gtk2term.pas index b14af311..c528601d 100644 --- a/etc/terminal/gtk2term.pas +++ b/etc/terminal/gtk2term.pas @@ -94,6 +94,10 @@ var vte_get_user_shell: function(): PChar; + vte_terminal_get_row_count: function(terminal: PVteTerminal): glong; cdecl; + + vte_terminal_get_column_count: function(terminal: PVteTerminal): glong; cdecl; + function Gtk2TermLoad: Boolean; implementation @@ -144,7 +148,10 @@ begin 'vte_terminal_paste_clipboard'); @vte_get_user_shell := GetProcAddress(Lib, 'vte_get_user_shell'); - + @vte_terminal_get_row_count := GetProcAddress(Lib, + 'vte_terminal_get_row_count'); + @vte_terminal_get_column_count:= GetProcAddress(Lib, + 'vte_terminal_get_column_count'); // assume all or none Loaded := @vte_terminal_new <> nil;