X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/58afc6aaca119c6b7b9ac5d91e3c6ee28dbd6fda..50a3d79f79a223e8a119fe7531fd0a47ebd09d45:/Console.cpp diff --git a/Console.cpp b/Console.cpp index 9ad12ee..883f03f 100644 --- a/Console.cpp +++ b/Console.cpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2014 Jay Freeman (saurik) + * Copyright (C) 2009-2015 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -85,7 +85,8 @@ static void sigint(int) { case Parsing: longjmp(ctrlc_, 1); case Running: - throw "*** Ctrl-C"; + CYCancel(); + return; case Sending: return; case Waiting: @@ -386,7 +387,7 @@ static char **Complete(const char *word, int start, int end) { // need char *, not const char * static char name_[] = "cycript"; -static char break_[] = " \t\n\"\\'`@$><=;|&{(" ")}" ".:[]"; +static char break_[] = " \t\n\"\\'`@><=;|&{(" ")}" ".:[]"; class History { private: