문제

I have a small TCP client/server application in C and on Linux where a client can connect e.g. via telnet to a server-side cli. On the server, after accept is called, forkpty(3) is executed and traffic between master (pty) and the socket is forwarded. The slave (pty) implements a cli that uses libreadline. That all already works well.

My only question is, how do I get libreadline auto-completion to work? I have implemented auto-completion and can use it stand-alone on my shell, but not on the pty (two tabs are just printed instead). Any hints would be nice!

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top