summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-12-13 18:34:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2012-12-13 18:34:59 +0100
commitbf2b9133a7477e7b8100a9c3a384f2b3144f9839 (patch)
tree7c6047dbd90bae29e254bc6ae9bdc239d233985e /client
parent9a77f93f6fb1d1fc9be314c1d91704e8cffc60d3 (diff)
downloadbluez-bf2b9133a7477e7b8100a9c3a384f2b3144f9839.tar.gz
client: Add support for aborting command typing without exit
Diffstat (limited to 'client')
-rw-r--r--client/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/main.c b/client/main.c
index ea13165fc..4275cf06d 100644
--- a/client/main.c
+++ b/client/main.c
@@ -353,6 +353,11 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition condition,
switch (si.ssi_signo) {
case SIGINT:
+ rl_replace_line("", 0);
+ rl_crlf();
+ rl_on_new_line();
+ rl_redisplay();
+ break;
case SIGTERM:
if (__terminated == 0) {
rl_replace_line("", 0);