On Wed, Sep 20, 2023 at 10:04:55AM +0530, Jerin Jacob wrote: > On Tue, Sep 19, 2023 at 9:35 PM <sk...@marvell.com> wrote: > > > > From: Sunil Kumar Kori <sk...@marvell.com> > > > > It adds framework to initate a telnet session with application. > > > > Some configurations and debug commands are exposed as runtime APIs. > > Those commands can be invoked using telnet session. > > > > Application initiates a telnet server with host address 0.0.0.0 > > and port number 8086 by default. > > > > To make it configurable, "-h" and "-p" options are provided. > > Using them user can pass host address and port number on which > > application will start telnet server. > > > > Using same host address and port number, telnet client can connect > > to application. > > > > Syntax to connect with application: > > # telnet <host> <port> > > > > Once session is connected, "graph> " prompt will be available. > > Example: > > # telnet 10.28.35.207 50000 > > Trying 10.28.35.207... > > Connected to 10.28.35.207. > > Escape character is '^]'. > > > > Welcome! > > > > graph> > > Some improvements > 1) Please squash 14/14 patch to 1/14. > 2) Ctrl - C doesn't work which is a serious issue. We have to kill it > via kill -9 <pid> from a separate window. This is probably because of > command line library. > 3). In case app launch fails due to error, it will leave terminal into > a bad state until "reset" command is executed. This might also be > because of command line library. > 4). Just a wishlist: If on terminal console I could do a tab and get > commands help, just like testpmd console.
I think that the tab completion is only available if you use cmdline_stdin_new vs regular cmdline creation function. In the case of the telnet connection, it may work to set the telnet fd as stdin/stdout for the connection and then use cmdline_stdin_new to create the cmdline. /Bruce