NetworkManager/clients
Lubomir Rintel 576f0877f3 cli: initialize readline before installing the redisplay handler
Otherwise readline decides to initialize terminal handling at the first
readline call, and if that happens at the point it sees our
non-echoing rl_redisplay.

At that point, unless already intialized, readline wrongly convinces itself we
do our own handling of terminal peculiarities (such as cursor movement, or
erases).  We do not -- we merely wrap the stock rl_redisplay(), temporarily
hiding the actual characters.

The rl_initialize() in nmc_readline_echo()s fixes broken line editing in
password prompts that weren't preceded a previous non-password prompt.
The other one is there for consistency only. (I guess we should be
initializing readline before use anyway; although it seems to initialize
itself anyway if we fail to do so...)

https://github.com/NetworkManager/NetworkManager/pull/241
(cherry picked from commit 05d6c993dd)
2018-10-23 23:01:30 +02:00
..
cli cli: initialize readline before installing the redisplay handler 2018-10-23 23:01:30 +02:00
common cli: minor cleanup of _set_fcn_gobject_enum() 2018-10-17 16:39:16 +02:00
tests cli/tests: add test for adding and displaying gsm/serial settings 2018-10-17 16:45:03 +02:00
tui cli: fix reading "vpn.secrets.*" from passwd-file 2018-09-14 15:17:53 +02:00
meson.build build: create "config-extra.h" header instead of passing directory variables via CFLAGS 2018-07-17 17:46:39 +02:00
nm-online.c nm-online: print "[started|start-pending|failure]" for --wait-for-startup 2018-06-30 10:59:08 +02:00