^C will now work correctly in prompts!
This commit is contained in:
parent
8f7e1e6872
commit
a315ee4dc1
1 changed files with 4 additions and 0 deletions
|
|
@ -44,7 +44,11 @@ class PromptScheduler(Scheduler):
|
||||||
else:
|
else:
|
||||||
self.read_cb(line.strip())
|
self.read_cb(line.strip())
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
self._wait_to_stop()
|
||||||
sys.stdout.write('\n')
|
sys.stdout.write('\n')
|
||||||
|
else:
|
||||||
|
self._wait_to_stop()
|
||||||
|
return True
|
||||||
|
|
||||||
class PromptApplication(ConsoleApplication):
|
class PromptApplication(ConsoleApplication):
|
||||||
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue