Re: console applications in textbuffer



That would be libzvt2, and yes, it can quite easily, and it's fun too!
(Now go help me with my post earlier with gnome_app_new oddities :)

    -James Moss

* Ari Pollak (compwiz aripollak com) wrote:
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
 / __ |/ ___/
/_/ |_/_/

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]