|
|
| Author |
Message |
|
|
abcb
Joined: 15 May 2008 Posts: 2
|
Posted: Thu May 15, 2008 9:29 am Post subject: Embed a Shell Window |
|
|
Hi,
i have a problem trying to embed a shell window in my gtk+ progam.
Well, actually i don't really know if it can be done or not. What i would like to do is create a widget and embed inside a shell window so the output of my script can be viewed in my application. I think the solutions are possibly 2:
- There is a way to embed directly the "gnome-terminal" command in a new widget
- Redirecting input/output of a new shell created outside and then display on my application.
I would really appreciate if someone who had the same problem could help me.
Thanks
Edoardo |
|
| Back to top |
|
 |
alen121 Familiar Face
Joined: 28 Sep 2007 Posts: 27
|
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 462 Location: Portland, OR USA
|
Posted: Thu May 15, 2008 3:32 pm Post subject: |
|
|
As mentioned, the VTE widget will allow you to embed a terminal directly into your application.
If you are looking to simply show the output of a command or script in your application, this might help: Execute command into a GtkTextView (C and Libglade) |
|
| Back to top |
|
 |
abcb
Joined: 15 May 2008 Posts: 2
|
Posted: Tue May 20, 2008 2:09 pm Post subject: |
|
|
| Thanks for help..that was really what i was looking for. |
|
| Back to top |
|
 |
|