[PATCH BlueZ 3/4] client: Force redisplay on rl_printf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

It seems some in some version of readline rl_redisplay does not update
when rl_printf is called, so this uses rl_forced_update_display which
should force the new lines to be displayed.
---
 client/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/display.c b/client/display.c
index bc891af..0f212b6 100644
--- a/client/display.c
+++ b/client/display.c
@@ -58,7 +58,7 @@ void rl_printf(const char *fmt, ...)
 		rl_restore_prompt();
 		rl_replace_line(saved_line, 0);
 		rl_point = saved_point;
-		rl_redisplay();
+		rl_forced_update_display();
 		free(saved_line);
 	}
 }
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux