VTE is a library that provides a terminal widget implementation in GTK, functions for starting a new process on a new pseudo-terminal and for manipulating pseudo-terminals.
Questions tagged [vte]
45 questions
1
vote
0 answers
PyGobject VTE terminal, command printed twice
I'm writing an application to connect to few Linux server via SSH, which using VTE terminal to make some operation on this server. To connect to this server I'm using bash expect command to provide password. I want to run this command instantly…

Dawid Respondek
- 47
- 1
- 6
1
vote
1 answer
Vte: get cursor position in screen coordinates
VTE's get_cursor_position() returns "scrollback buffer" coordinates, i.e. the y is relative not to beginning of the screen, but to the to the beginning of the scrollback buffer. How can I get screen coordinates instead?

tfga
- 51
- 5
1
vote
2 answers
Make a vte terminal communicate with running python script
I am trying to achieve the following. I built some gtk application which will have some data, let's say a,b and c.
What I want now is some sort of terminal window in which I can query and change the data as I would in e.g. iPython:
$ a
[1 2 3]
$ a=…

derwahre_tj
- 339
- 1
- 4
- 13
1
vote
1 answer
Running a script bash with using VTE module
I'm trying to use the VTE module to run a script bash:
I have several errors,
One of them is:
avconv version 9.11-6:9.11-2ubuntu2, Copyright (c) 2000-2013 the Libav developers
built on Mar 24 2014 06:12:33 with gcc 4.8 (Ubuntu 4.8.2-17ubuntu1)
:…

Guillaume
- 2,752
- 5
- 27
- 42
1
vote
1 answer
How to get text from VTE using PyGObject ( Gtk3 in Python)
In the Gnome documentation of vte is described the method get_text : vte_terminl_get_text.
Executing dir() on vte.Terminal ( Gtk2) I can see that the method get_text is available, instead in Vte.Terminal (Gtk3) that method doesn't exist.
Is there an…

Irr
- 656
- 1
- 9
- 19
1
vote
5 answers
1
vote
3 answers
gtk+ vte scrollback not working
gtk+ ver 2.24.8
vte ver 0.28.2
I just starting out creating a terminal application, however, none of the examples I have found online (5) have working scrollback. Is there a problem with scrollback in vte or is it something I'm not seeing? Here is…

nomadicME
- 1,389
- 5
- 15
- 35
0
votes
1 answer
Convert GdkX11Window to VTE Terminal class in an focus event
I need to receive a GTK+ focus in event on a Terminal (VTE), but the event returns EventFocus which holds Gtk.Window reference:
http://www.valadoc.org/gdk-3.0/Gdk.EventFocus.html
How can I get the Terminal from the Window reference? I cannot retype…

lzap
- 16,417
- 12
- 71
- 108
0
votes
0 answers
Scrollbar not showing
I'm writing a little program in C on using VTE/GTK and trying to implement a scrollbar on my terminal, but the scrollbar is not showing. Here is the code:
#include
#include
static void on_terminal_scroll(GtkAdjustment *vadj,…
user22023581
0
votes
1 answer
Implement Icon in C terminal based on VTE
I'm trying to implement an icon for the following program written in C I found online.
I looked everywhere but couldn't find a proper answer.
#include
static void
child_ready(VteTerminal *terminal, GPid pid, GError *error, gpointer…
user22023581
0
votes
1 answer
Can't run shell command in VTE GTK4 Fake Terminal
I made a small sample code in gtk4 + vte to run a fake terminal with a button in the bottom to run a simple command when the button is clicked.
main.c
#include
#include
#define WINDOW_HEIGHT 400
#define WINDOW_WIDTH…

Chandler Klüser
- 51
- 2
- 11
0
votes
1 answer
Velocity split() and array display, concatenate syntax
I am trying to work with Velocity, which is like programming with your feet. I'm fluent in JavaScript and PHP but not Java. So I need a little help figuring out the correct syntax for this. I've done some research but since I'm not familiar with…

MaxRocket
- 920
- 1
- 12
- 26
0
votes
1 answer
VteTerminal - Wait until command has finished
In an application I want to embed VteTerminal and let the user feed pre-defined commands.
After I run a command that takes some time I want to run another command. However, the second command is run even while the first one hasn't even started, or…

Arjen Balfoort
- 165
- 12
0
votes
1 answer
Open gnome terminal new tab in current folder with git prompt command
In Fedora 29, added nice branch display to my bash prompt and new tabs no longer open in current folder:
if [ -f /etc/bash_completion.d/git-prompt ]
then
GIT_PS1_SHOWCOLORHINTS='yes'
GIT_PS1_SHOWDIRTYSTAT='yes'
GIT_PS1_SHOWSTASHSTATE='yes'
…

kornieff
- 2,389
- 19
- 29
0
votes
1 answer
New line in Virtual Terminal
I am trying to send commands in a Virtual Terminal using gtk. My code is
from gi.repository import Gtk, Vte
from gi.repository import GLib
import os
terminal = Vte.Terminal()
terminal.fork_command_full(
Vte.PtyFlags.DEFAULT,
…

Dau
- 419
- 1
- 5
- 20