NetworkManager/cli
Jiří Klimeš 433c067522 cli: mitigate slowness of readline() for some broken versions
There was a bug in readline-6.2 causing very slow processing when
rl_event_hook was used [1]. This was fixed later after 6.2 was out.
Unfortunately some distributions don't include the fix. Fedora is one
example [2].
So we lower keyboard input timeout from 0.1s to 0.01s. This makes readline
more responsive. On the other hand it causes more interrupts, calling
rl_event_hook callback more often and thus slightly higher CPU usage.

[1] https://lists.gnu.org/archive/html/bug-readline/2012-06/msg00005.html
[2] related: https://bugzilla.redhat.com/show_bug.cgi?id=1109946

Note: this commit could (should) be reverted later when we check that most
distributions have the readline bug fixed.
2014-06-24 10:45:37 +02:00
..
completion nmcli autocomplete tab display : rename ERROR to ERR 2014-06-12 14:29:13 +02:00
src cli: mitigate slowness of readline() for some broken versions 2014-06-24 10:45:37 +02:00
Makefile.am Add bash-completion file for nmcli 2013-02-19 21:20:59 +01:00