neurolabs / henplus

HenPlus is a SQL shell that can handle multiple sessions in parallel. The commandline interface with the usual history functions features TAB-completion for commands, tables and columns. Database connect via JDBC.
GNU General Public License v2.0
97 stars 51 forks source link

SIGINT (Ctrl-C) end program #18

Closed tbk303 closed 13 years ago

tbk303 commented 13 years ago

I use HenPlus II 0.9.7 with sun java 1.4.2_06. When I press Ctrl-C in line (empty as well as not empty) henplus write the message: ..discard current line; press [RETURN] after my RETURN henplus ... store settings and finish :(

I think shell-like program should not stop after Ctrl-C only discard current line...

I comment 432 line as bellow:

432c432
< _terminated = true; // terminate if we press
CTRL on empty line.

---
> //_terminated = true; // terminate if we press
CTRL on empty line.

and (Ctrl-C) works as I expect (after RETURN program continue work). Perhaps is it good idea to apply similar above patch to henplus?

neurolabs commented 13 years ago

Marek Zakowicz ( mazaczek ) - 2006-01-20 14:20:28 UTC

neurolabs commented 13 years ago

I've fixed this issue in the past, will be in the next release.