Re: The "effect" of carriage return in GtkTextView



Thank you Lucky B.C.: Your suggestion works great!!
It is exactly what I was looking for.
Obviously if the speed of the incoming messages is to hight, on the
TextView you do not see anything (but this is not my case).

2018-03-13 20:16 GMT+01:00 Lucky B.C <lblackc13 gmail com>:

Well GtkTextView doesn't do that, and GtkTextBuffer too but it can delete
the range from GtkTextIter start to GtkTextIter end
by gtk_text_buffer_delete , then you can insert again your new message
by gtk_text_buffer_insert!

On Tue, Mar 13, 2018, 23:02 arkkimede <arkkimede gmail com> wrote:

HI!
I written an application GTK3 on Ubuntu 16.04 that essentially, by mean a
GUI generates an input file used to feed an executable.

This executable print out messages that inform the user about the status
of
the run.
At the moment I'm able to catch this messages and redirect them on a
GtkTextView.

This executable produces messages like:

Evaluated point n 1 of 1000
Evaluated point n 2 of 1000

etc.

On a simple xtem, using instruction like:

printf("Evaluated point n %4d of %4d \r",iPoint, totalPoints);

I can observe the message always on the same line: the special character
"\r" put the cursor to the begin of the line but daes not change line.


What I would like to know if it is possible implement a similar effect on
a
GtkTextView.

Thank You in Advance
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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