mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
Print more useful info when recording and finishing
This commit is contained in:
@@ -130,12 +130,17 @@ class PtyRecorder(object):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self._open_files()
|
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()
|
success = self._spawn()
|
||||||
self._write_stdout('\n~ Asciicast recording finished.\n')
|
self.reset_terminal()
|
||||||
|
self._write_stdout('~ Asciicast recording finished.\n')
|
||||||
self._close_files()
|
self._close_files()
|
||||||
return success
|
return success
|
||||||
|
|
||||||
|
def reset_terminal(self):
|
||||||
|
subprocess.call(["reset"])
|
||||||
|
|
||||||
def _open_files(self):
|
def _open_files(self):
|
||||||
self.stdout_file = TimedFile(self.path + '/stdout')
|
self.stdout_file = TimedFile(self.path + '/stdout')
|
||||||
if self.record_input:
|
if self.record_input:
|
||||||
@@ -267,6 +272,8 @@ class Uploader(object):
|
|||||||
self.path = path
|
self.path = path
|
||||||
|
|
||||||
def upload(self):
|
def upload(self):
|
||||||
|
print '~ Uploading...'
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
'meta': 'meta.json',
|
'meta': 'meta.json',
|
||||||
'stdout': 'stdout',
|
'stdout': 'stdout',
|
||||||
|
|||||||
Reference in New Issue
Block a user