'This method is called from gobject.timeout_add and will add messages
from self.message to the textbuffer.
:return: True to keep running'

def handle_message(self, msg):

    super(PromptView, self).handle_message(msg)
    if (msg.get_type() == 'console'):
        text = msg.get_msg()
        if msg.get_new_line():
            text += '\n'
        self.insert_into_textbuffer(text)
        (yield True)
