]> git.puffer.fish Git - mirror/frr.git/commit
vtysh: initialise readline before binding key
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 19 Nov 2016 09:42:52 +0000 (10:42 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 23 Nov 2016 07:32:30 +0000 (08:32 +0100)
commita7c36d8552cc71538bc42087531866cc16851a39
tree220d460c5774f06ff70348de941e1c1eef2f7fa3
parent6d15b247e77037f0674cf1c157850dafd3d0ae4d
vtysh: initialise readline before binding key

when libreadline initialises itself, it also reads .inputrc, which may
result in keybindings being set up.  This means the builtin help on the
'?' key can be overridden by that.  Consistent availability of '?'
behaviour trumps .inputrc setup here, so let's initialise readline
first before binding that key (which means our keybinding wins).

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
vtysh/vtysh.c