Well, this is pretty old, but, here is an example of executing a command into a GtkTextView: Execute command into a GtkTextView (C and Libglade)These days you would use GtkBuilder instead of libglade, the the concepts of using the GtkTextView are the same.