Re: Terminal-like widget



The part you care about is probably:

�� � � �vte = vte_terminal_new();�
� � � � vte_terminal_set_background_transparent(VTE_TERMINAL(vte),�FALSE);�
� � � � vte_terminal_set_size(VTE_TERMINAL(vte),�80,�25);�
� � � � vte_terminal_fork_command(VTE_TERMINAL(vte),�NULL,�NULL,�NULL, ptr,�TRUE,�TRUE,TRUE);�
� � � � vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL (vte),�TRUE);�
� � � � gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), vte);�


On Wed, Nov 24, 2010 at 12:50 PM, Adrian Petrescu <apetresc gmail com> wrote:
Check out:�http://www.gtkforums.com/about3422.html


On Wed, Nov 24, 2010 at 11:41 AM, Jan van der Laan <gtkmm eoos dds nl> wrote:

I am looking for a terminal-like widget. Something that offers a prompt for user input and displays messages/output. I have looked at libvte(mm), but as far as I am aware libvte expects a second process which probably also has to supply the prompt etc. using for example readline. In my case I have a library that has, as fas as the terminal part is concerned, two signals: one get_input at which point my program is expected to show a prompt and get input from the user which is then send back to the library and two write_message at which point my program is expected to write the message to the console (btw this can also happen during input).

I have looked at 'modifying' a textview and have got something that behaves somewhat like a terminal. However, getting everything exactly right is going to be quite a bit of work and I'd rather focus on other aspects of my program. Does any one know of an existing widget I could use? Thanks.

Regards,
Jan


_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list




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