NetworkManager/clients/cli
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
..
agent.c all: remove consecutive empty lines 2018-04-30 16:24:52 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: initialize readline before installing the redisplay handler 2018-10-23 23:01:30 +02:00
common.h cli: merge IPv4 and IPv6 versions of ip/dhcp config print 2018-07-09 15:43:55 +02:00
connections.c cli: fix reading "vpn.secrets.*" from passwd-file 2018-09-14 15:17:53 +02:00
connections.h cli: rework printing of vpn active-connection properties 2018-07-09 15:43:55 +02:00
devices.c cli: fix crash when removing devices 2018-10-22 09:28:37 +02:00
devices.h cli: rework printing of "wired" and "wifi" device details 2018-07-09 15:43:55 +02:00
general.c cli: add additional user-data argument to get_fcn() 2018-07-09 15:43:55 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +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
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: rework printing of "wired" and "wifi" device details 2018-07-09 15:43:55 +02:00
nmcli.h cli: minor cleanup explicitly checking print_output 2018-07-25 17:08:37 +02:00
polkit-agent.c cli: rework callbacks in NMPolkitListener to use one vtable structure 2018-04-16 16:03:14 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c shared: add @allow_escaping argument to @nm_utils_strsplit_set 2018-08-11 09:41:07 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c shared: add @allow_escaping argument to @nm_utils_strsplit_set 2018-08-11 09:41:07 +02:00
utils.h cli: add additional user-data argument to get_fcn() 2018-07-09 15:43:55 +02:00