Re: Re: using terminalFrom: Azrael
- From: Rui Homem <m3moh gmx net>
- To: gtk-app-devel-lis <gtk-app-devel-list gnome org>
- Subject: Re: Re: using terminalFrom: Azrael
- Date: 06 Dec 2002 15:48:41 +0000
Subject: Re: using terminal
From: Azrael <azrael azrael-uk f2s com>
To: gtk-app-devel-list gnome org
Organization:
Date: 05 Dec 2002 20:11:11 +0000
On Wed, 2002-12-04 at 16:40, horrorvacui gmx net wrote:
On 04 Dec 2002 12:00:15 +0000
Rui Homem <m3moh gmx net> wrote:
My question is:
i need a terminal widget, i tried to use zvtterm but i got to many
trouble for me to solve, so i search for another solution and i
found
vte. Can some one tell me how to work with vte (may be sending me
some
code for me to study it), is there a better solution, where should i
look for information.
I failed with zvtterm too, choosing vte instead seems to be a wise
thing
to do (zvtterm is deprecated anyway). Download vte:
ftp://ftp.unina.it/pub/linux/GNOME/sources/vte/0.10/vte-0.10.1.tar.bz2
untar and install it - I like installing those things to usr, using
the
configure-option:
./configure --prefix=/usr
I haven't got very far with using it, the only snippet of code I've
got is
just a primitive creation of the widget and forking of the shell
(don't
forget to #include <vte/vte.h>):
ZvtTerminal *term;
This is something confusing me?
Why ZvtTerminal when using the vte widget instead of the zvt widget?
should this not be VteTerminal *term; ?
box=gtk_vbox_new(FALSE, 3);
term=vte_terminal_new();
vte_terminal_fork_command(term,
NULL, NULL,
NULL, NULL,
FALSE,
TRUE,
TRUE);
gtk_box_pack_start(GTK_BOX (box), term, TRUE, TRUE, 10);
gtk_widget_show(term);
gtk_widget_show(box);
...and then you can put the box in a toplevel window, remember to pass
gcc
-L/usr/lib -lvte, compile the thing, and hope it works. It does here,
but
Can anyone tell me how to get a gui created in glade-2 to pass along
that line?
many thanks
--
Azrael
-------------------------------------------
i believe you are wright . I am trying to code with this widget and the
code i came to is this (don't know if there is something wrong but it
compiles good and gives the effect i want.)
GtkWidget *term;
term=vte_terminal_new();
vte_terminal_fork_command(VTE_TERMINAL(term),("/usr/bin/octave"),NULL,
NULL);
vte_terminal_set_cursor_blinks(VTE_TERMINAL(term),TRUE);
vte_terminal_set_scroll_on_output(VTE_TERMINAL(term),TRUE);
vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(term),TRUE);
vte_terminal_set_scrollback_lines(VTE_TERMINAL(term),50);
vte_terminal_set_emulation(VTE_TERMINAL(term),"xterm");
sorry but mi English is not very good and i didn't understand the last
question. Can you explain?
Thanks all
RuiH
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]