Re: console applications in textbuffer
- From: Ari Pollak <compwiz aripollak com>
- To: Hal Daume III <hdaume ISI EDU>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: console applications in textbuffer
- Date: Fri, 16 Aug 2002 13:25:11 -0400
I wonder if the main terminal widget from gnome-terminal can be embedded
in another app..
Hal Daume III wrote:
Hi!
I'm pretty new the GTK, but couldn't find anything addressing this in the
docs or the archives. I would like to run a console application in a
TextView/TextBuffer (or the like) in my GTK2 app. One way I could do this
is:
- display initial stuff in window
- get user input*
- send input to app
- set cursor to end and display results
- repeat
*get user input could be done by either tracking key strokes and
memorizing them (doing smart stuff with arrows, etc.) or: note cursor pos
before getting input, wait for enter, get text btw prev cursor pos and new
cursor pos.
Is there a better, less ad-hoc way to do this?
Thanks!
- Hal
--
___ ___
/ _ | / _ \ Ari Pollak - ari aripollak com - www.aripollak.com
/ __ |/ ___/
/_/ |_/_/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]