SIGINT (Ctrl+C) during edit should cancel current entry.

In general, tdsql treats SIGINT (Ctrl+C) poorly. During text entry, SIGINT should cancel the current line and return you to a fresh tdsql prompt; during query execution, SIGINT should interrupt the current query (and make sure the server stops running it), and again return you to a fresh tdsql prompt. This diff implements the former.