commit | c4f55fee15b66ea53da092ca50400ac5d8b0692d | [log] [tgz] |
---|---|---|
author | Caroline Tice <ctice@apple.com> | Fri Nov 19 20:47:54 2010 +0000 |
committer | Caroline Tice <ctice@apple.com> | Fri Nov 19 20:47:54 2010 +0000 |
tree | c3d0f959b8b72fea1eff401acaf81362d8f37798 | |
parent | a5cf463b820e1ed97947ee0dd962bece5e111b8e [diff] [blame] |
Add the ability to catch and do the right thing with Interrupts (often control-c) and end-of-file (often control-d). git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@119837 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp index 0dc4a34..86a635a 100644 --- a/source/Interpreter/CommandInterpreter.cpp +++ b/source/Interpreter/CommandInterpreter.cpp
@@ -860,6 +860,12 @@ } break; + case eInputReaderInterrupt: + case eInputReaderEndOfFile: + *response_ptr = false; // Assume ^C or ^D means cancel the proposed action + reader.SetIsDone (true); + break; + case eInputReaderDone: break; }