How to use pseudo-terminals in Linux with C?

后端 未结 3 2031
青春惊慌失措
青春惊慌失措 2020-12-03 17:42

I\'m trying to figure out how to use pseudo-terminal\'s in linux, essentially I want to create a telnetd clone, something I mentioned in an earlier question.

I under

3条回答
  •  鱼传尺愫
    2020-12-03 18:00

    Advanced Programming in the Unix Environment, 2nd Edition has a superb chapter on the pseudo-terminal layer available in Linux. The best part is the source code which contains a pty driver and very clearly demonstrates how to use the pty interfaces. (The pty program it builds is useful in its own right if you want to drive a terminal-only program programmatically but don't wish to use expect(1).)

提交回复
热议问题