def show_prompt(self):
    if (self.sub_processor is not None):
        self.sub_processor.show_prompt()
    else:
        self.write(self.get_prompt())
def show_prompt(self):
    if (self.sub_processor is not None):
        self.sub_processor.show_prompt()
    else:
        self.write(self.get_prompt())