From cb22ead3b32a615c83ec42cef8793706a37ae0e9 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sun, 11 Mar 2012 16:29:13 +0100 Subject: [PATCH] Print more useful info when recording and finishing --- bin/asciiio.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/asciiio.py b/bin/asciiio.py index 59a59a5..f3f6bef 100755 --- a/bin/asciiio.py +++ b/bin/asciiio.py @@ -130,12 +130,17 @@ class PtyRecorder(object): def run(self): self._open_files() - self._write_stdout('\n~ Asciicast recording started.\n') + self.reset_terminal() + self._write_stdout('~ Asciicast recording started. Hit ^D (that\'s Ctrl+D) or type "exit" to finish.\n\n') success = self._spawn() - self._write_stdout('\n~ Asciicast recording finished.\n') + self.reset_terminal() + self._write_stdout('~ Asciicast recording finished.\n') self._close_files() return success + def reset_terminal(self): + subprocess.call(["reset"]) + def _open_files(self): self.stdout_file = TimedFile(self.path + '/stdout') if self.record_input: @@ -267,6 +272,8 @@ class Uploader(object): self.path = path def upload(self): + print '~ Uploading...' + files = { 'meta': 'meta.json', 'stdout': 'stdout',