summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-27 13:53:55 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-04 10:25:27 +0300
commit2fb3485481b707a3b2c38574a571f6c4d486219a (patch)
treec5d5d745c8397439423b909ff99d2cfb9ecd8ba9 /client/commands.c
parent6d0669d26f21eadd906e1ee05e85c7d1e55d94b7 (diff)
downloadconnman-2fb3485481b707a3b2c38574a571f6c4d486219a.tar.gz
connman-2fb3485481b707a3b2c38574a571f6c4d486219a.tar.bz2
connman-2fb3485481b707a3b2c38574a571f6c4d486219a.zip
client: Add calls to save and redraw input prompt
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/commands.c b/client/commands.c
index 6e124f9d..6e2680bb 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -38,9 +38,9 @@
#include "technology.h"
#include "data_manager.h"
-#include "commands.h"
#include "dbus_helpers.h"
#include "input.h"
+#include "commands.h"
#define MANDATORY_ARGS 3
@@ -404,6 +404,8 @@ static DBusHandlerResult monitor_changed(DBusConnection *connection,
if (path != NULL && *path != '\0')
path++;
+ __connmanctl_save_rl();
+
if (dbus_message_is_signal(message, "net.connman.Manager",
"ServicesChanged") == TRUE) {
@@ -432,6 +434,8 @@ static DBusHandlerResult monitor_changed(DBusConnection *connection,
__connmanctl_dbus_print(&iter, "", " = ", " = ");
fprintf(stdout, "\n");
+ __connmanctl_redraw_rl();
+
return DBUS_HANDLER_RESULT_HANDLED;
}