^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:
|
||||
self.read_cb(line.strip())
|
||||
except KeyboardInterrupt:
|
||||
self._wait_to_stop()
|
||||
sys.stdout.write('\n')
|
||||
else:
|
||||
self._wait_to_stop()
|
||||
return True
|
||||
|
||||
class PromptApplication(ConsoleApplication):
|
||||
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue