diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-20 15:00:50 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-03-20 15:00:50 -0400 |
| commit | 5bf89f06507f2cd329e5c95be8e35b869f86f133 (patch) | |
| tree | 59dcf5753304940cf509760c6867d64d2baee6a8 | |
| parent | 023acec19eb516dcb3b57ae2b5197e1f80af97d7 (diff) | |
| download | cmd2-git-5bf89f06507f2cd329e5c95be8e35b869f86f133.tar.gz | |
Updated comment
| -rw-r--r-- | cmd2/cmd2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 78b48404..c2affe79 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -701,7 +701,8 @@ class Cmd(cmd.Cmd): except (OSError, KeyboardInterrupt): pass - # Less doesn't respect ^C, but catches it for its own UI purposes (aborting search etc. inside less) + # Wait in a loop until the process exits. Ignore Ctrl-C events because that doesn't + # mean the process is closed. For instance, less does not exit on Ctrl-C. while True: try: pipe_proc.wait() |
