Take a look at libvte it's the Gtk widget used by gnome-terminal. It can be embedded easily in any application.
http://library.gnome.org/devel/vte/unstable/VteTerminal.html On Sat, Mar 7, 2009 at 3:50 PM, Dutta, Seemanta <[email protected]> wrote: > > Hi, > I want to design a console based interface to my application. The console > would enable the user to manually give commands to my application. Something > akin to the python console that you get in RhythmBox. > > I am planning to use GtkTextViewer widget for this. My main requirement for > the console is that It should not allow the user to 'scroll-back' and edit > past commands, which would be very inconsistent. In other words it should > behave just like a terminal command line, allowing line editing for the > current line only. I am not thinking of readline support right now but that > can be added later as an enhancement. > > My question: Is that possible in GtkTextViewer? I always thought that I can > set the entire widget as editable or non editable. But if I set it as > editable, then I don't want the user to be able to scroll up and fiddle with > text that is present above. > > Can anyone please advise? > > regards, > Seemanta > _______________________________________________ > gtk-list mailing list > [email protected] > http://mail.gnome.org/mailman/listinfo/gtk-list > -- Emmanuel Rodriguez _______________________________________________ gtk-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtk-list
