NetworkManager/clients/cli
Lubomir Rintel 05d6c993dd 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
2018-10-23 15:42:19 +02:00
..
agent.c cli: don't use global nm_cli in nmc_readline_*() 2018-10-10 09:55:45 +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 15:42:19 +02:00
common.h cli: don't use global nm_cli in nmc_readline_*() 2018-10-10 09:55:45 +02:00
connections.c cli: fix memory leak 2018-10-22 08:43:44 +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 08:43:44 +02:00
devices.h cli: rework printing of "wired" and "wifi" device details 2018-07-09 15:43:55 +02:00
general.c cli: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +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: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +02:00
nmcli.h cli: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +02:00
polkit-agent.c cli: don't use global nm_cli in nmc_readline_*() 2018-10-10 09:55:45 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: don't access global nm_cli variable from nmc_setting_set_property() 2018-10-10 09:55:45 +02:00
settings.h cli: don't access global nm_cli variable from nmc_setting_set_property() 2018-10-10 09:55:45 +02:00
utils.c cli: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +02:00
utils.h cli: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +02:00