Re: Re: using terminalFrom: Azrael
- From: Azrael <azrael azrael-uk f2s com>
- To: gtk-app-devel-lis <gtk-app-devel-list gnome org>
- Subject: Re: Re: using terminalFrom: Azrael
- Date: 06 Dec 2002 17:12:21 +0000
On Fri, 2002-12-06 at 15:48, Rui Homem wrote:
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
I think my question basically originates in my not knowing how to
properly compile. My programming up to this point has only been on
windows.. command line compiling was just 'bcpp32 <filename>.cpp' and
GUI compiling was from a button ;). So I am just plain ignorant of the
whole makefile and compile line options etc etc..
Well.. not ignorant per se.. I know there are such things.. I just don't
actually know much about how to do it all.. but I am learning.. just not
fast enough for my own wishes!! ;)
thanks for your comments though.. I will file them away for use very
soon :)
--
Azrael
("\''/").___..--'''"-._
`0_ O ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
((i).-'' ((i).' (((.-'
Of all God's creatures there is only one that cannot be made the slave
of the lash. That one is the cat. If man could be crossed with a cat it
would improve man, but it would deteriorate the cat.
ICQ#52944566
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]