Simplest way to get a PTY in Linux C++

前端 未结 1 1900
不思量自难忘°
不思量自难忘° 2021-01-21 09:08

I am programming something that needs an interface to Bash. At first I thought I could just use popen or QProcess. ( I\'m using QT C++ ) They work fine but I can\'t get them to

1条回答
  •  隐瞒了意图╮
    2021-01-21 09:18

    Consider the option of running /bin/sh -s, which means "read commands from standard input". That removes the need to emulate a terminal.

    0 讨论(0)
提交回复
热议问题