This method returns the 'spoofed' stdout buffer, for writing to a file or sending to a pastebin or whatever.
(self)
| 857 | edit.set_edit_markup(list(format_tokens(tokens))) |
| 858 | |
| 859 | def getstdout(self): |
| 860 | """This method returns the 'spoofed' stdout buffer, for writing to a |
| 861 | file or sending to a pastebin or whatever.""" |
| 862 | |
| 863 | return self.stdout_hist + "\n" |
| 864 | |
| 865 | def ask_confirmation(self, q): |
| 866 | """Ask for yes or no and return boolean""" |