public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Embeding a Terminal in a GTK Window
@ 2010-03-08 23:01 dhk
  2010-03-09  1:30 ` Kaddeh
  2010-03-09  7:26 ` Damian
  0 siblings, 2 replies; 5+ messages in thread
From: dhk @ 2010-03-08 23:01 UTC (permalink / raw
  To: gentoo-user

Is it possible to embed a terminal window in a gtk window?

I want to be able to run a text program as usual, but have it wrapped in
the GTK window so I can scroll output and other stuff to a textview.

Thanks,

dhk



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Embeding a Terminal in a GTK Window
  2010-03-08 23:01 [gentoo-user] Embeding a Terminal in a GTK Window dhk
@ 2010-03-09  1:30 ` Kaddeh
  2010-03-09  7:26 ` Damian
  1 sibling, 0 replies; 5+ messages in thread
From: Kaddeh @ 2010-03-09  1:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

have you tried terminal, xterm, aterm, etc?

On Mon, Mar 8, 2010 at 3:01 PM, dhk <dhkuhl@optonline.net> wrote:

> Is it possible to embed a terminal window in a gtk window?
>
> I want to be able to run a text program as usual, but have it wrapped in
> the GTK window so I can scroll output and other stuff to a textview.
>
> Thanks,
>
> dhk
>
>

[-- Attachment #2: Type: text/html, Size: 663 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Embeding a Terminal in a GTK Window
  2010-03-08 23:01 [gentoo-user] Embeding a Terminal in a GTK Window dhk
  2010-03-09  1:30 ` Kaddeh
@ 2010-03-09  7:26 ` Damian
  2010-03-09 13:24   ` dhk
  1 sibling, 1 reply; 5+ messages in thread
From: Damian @ 2010-03-09  7:26 UTC (permalink / raw
  To: gentoo-user

On Tue, Mar 9, 2010 at 12:01 AM, dhk <dhkuhl@optonline.net> wrote:
> Is it possible to embed a terminal window in a gtk window?
>
> I want to be able to run a text program as usual, but have it wrapped in
> the GTK window so I can scroll output and other stuff to a textview.
I would look into vte. This may be relevant for you:
    http://old.nabble.com/Embedding-the-VTE-Virtual-Terminal-td26529933.html

> Thanks,
>
> dhk
>
>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Embeding a Terminal in a GTK Window
  2010-03-09  7:26 ` Damian
@ 2010-03-09 13:24   ` dhk
  2010-03-09 21:38     ` Frank Steinmetzger
  0 siblings, 1 reply; 5+ messages in thread
From: dhk @ 2010-03-09 13:24 UTC (permalink / raw
  To: gentoo-user

Damian wrote:
> On Tue, Mar 9, 2010 at 12:01 AM, dhk <dhkuhl@optonline.net> wrote:
>> Is it possible to embed a terminal window in a gtk window?
>>
>> I want to be able to run a text program as usual, but have it wrapped in
>> the GTK window so I can scroll output and other stuff to a textview.
> I would look into vte. This may be relevant for you:
>     http://old.nabble.com/Embedding-the-VTE-Virtual-Terminal-td26529933.html
> 
>> Thanks,
>>
>> dhk
>>
>>
> 
> 

I'm not looking to make major changes to the existing terminal run
program.  You see, I'm dealing with the corporate mentality.  They want
to add features that are just not that feasible in a procedural
language.  I also have to deal with their thousands of users that use
the program around the country and their distribution and install
procedures.  So changing the terminal the program runs in is not an
option, that would mean getting security and sysadmins involved etc.  So
in short a lot will not fly.  Management doesn't understand why a
procedural application can't have a button or scrolling text, because
they see those bells and whistles on websites they think they can have
it everywhere.  I really don't want to go off on a corporate management
tangent.

I would like to make some hybrid GUI/text application.  The original
text application runs in a terminal.  I can edit the text program so I
can change the main().  So far I've added GTK and can compile and link
with GTK.  When the text program starts I can open a GTK window which
has a vbox in it.  In one of the sections to the vbox I would like to
know how I can embed the terminal that runs the text program.  The other
parts of the vbox will have a scroll window and buttons.

I thought it may be possible using GTK plugs and sockets or forcing the
coordinated of the terminal to be inside the window, but both have
obstacles.  Is there a way to give management their buttons and
scrolling text?

Is this do-able?

Thanks,

dhk



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] Embeding a Terminal in a GTK Window
  2010-03-09 13:24   ` dhk
@ 2010-03-09 21:38     ` Frank Steinmetzger
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Steinmetzger @ 2010-03-09 21:38 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1463 bytes --]

Am Dienstag 09 März 2010 schrieb dhk:

> I'm not looking to make major changes to the existing terminal run
> program.  You see, I'm dealing with the corporate mentality.  They want
> to add features that are just not that feasible in a procedural
> language.  I also have to deal with their thousands of users that use
> the program around the country and their distribution and install
> procedures.  So changing the terminal the program runs in is not an
> option, that would mean getting security and sysadmins involved etc.  So
> in short a lot will not fly.  Management doesn't understand why a
> procedural application can't have a button or scrolling text, because
> they see those bells and whistles on websites they think they can have
> it everywhere.  I really don't want to go off on a corporate management
> tangent.
> 
> I would like to make some hybrid GUI/text application.  The original
> text application runs in a terminal.  I can edit the text program so I
> can change the main().  So far I've added GTK and can compile and link
> with GTK.  When the text program starts I can open a GTK window which
> has a vbox in it.  In one of the sections to the vbox I would like to
> know how I can embed the terminal that runs the text program.  The other
> parts of the vbox will have a scroll window and buttons.

Sounds like a good candidate for ncurses.
-- 
Gruß | Greetings | Qapla'
*** Quits: TITANIC (Excess Flood)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-09 22:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08 23:01 [gentoo-user] Embeding a Terminal in a GTK Window dhk
2010-03-09  1:30 ` Kaddeh
2010-03-09  7:26 ` Damian
2010-03-09 13:24   ` dhk
2010-03-09 21:38     ` Frank Steinmetzger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox