---
 client/commands.c     |    7 ++++++-
 client/dbus_helpers.c |    7 +++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/client/commands.c b/client/commands.c
index 7bd2bbb..c7f077e 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -37,8 +37,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
 
@@ -402,6 +403,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) {
 
@@ -430,6 +433,8 @@ static DBusHandlerResult monitor_changed(DBusConnection 
*connection,
        __connmanctl_dbus_print(&iter, "", " = ", " = ");
        fprintf(stdout, "\n");
 
+       __connmanctl_redraw_rl();
+
        return DBUS_HANDLER_RESULT_HANDLED;
 }
 
diff --git a/client/dbus_helpers.c b/client/dbus_helpers.c
index a52a8af..9158d85 100644
--- a/client/dbus_helpers.c
+++ b/client/dbus_helpers.c
@@ -23,6 +23,7 @@
 #include <errno.h>
 #include <glib.h>
 
+#include "input.h"
 #include "dbus_helpers.h"
 
 #define TIMEOUT         60000
@@ -128,6 +129,8 @@ static void dbus_method_reply(DBusPendingCall *call, void 
*user_data)
        DBusMessage *reply;
        DBusMessageIter iter;
 
+       __connmanctl_save_rl();
+
        reply = dbus_pending_call_steal_reply(call);
        if (dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR) {
                DBusError err;
@@ -145,6 +148,10 @@ static void dbus_method_reply(DBusPendingCall *call, void 
*user_data)
        callback->cb(&iter, NULL, callback->user_data);
 
 end:
+       __connmanctl_redraw_rl();
+       if (__connmanctl_is_interactive() == false)
+               __connmanctl_quit();
+
        g_free(callback);
        dbus_message_unref(reply);
 }
-- 
1.7.10.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to