Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
on linux centos or redhat 7, run ./testcli and telnet 127.0.0.1 8000 locally. under
Uername: or router> prompt, type very long chars more than 1 line and then hit Backspace, it can't go back to previous line and stuck at the beginning of second line.
on linux centos or redhat 7, run ./testcli and telnet 127.0.0.1 8000 locally. under Uername: or router> prompt, type very long chars more than 1 line and then hit Backspace, it can't go back to previous line and stuck at the beginning of second line.