groupon / tdsql

Run SQL queries against a Teradata data warehouse server
BSD 3-Clause "New" or "Revised" License
29 stars 15 forks source link

The CLI should handle Ctrl-C gracefully #15

Open martinwesthead opened 10 years ago

martinwesthead commented 10 years ago

If CTRL-C is hit during a line edit the CLI should simply move to the next line (like bash). If CTRL-C is hit during an query execution then the execution should be interrupted and control returned to the command prompt.

Thanks!

Martin

andrewgho commented 10 years ago

The former part (Ctrl+C during an edit) is tracked in pull request #14. I'll track the latter part here. I'm afraid it's a bit more difficult (something in DBI or DBD::Teradata seems to be trapping SIGINT in a way I can't figure out how to override).