输出到另一个终端窗口C ++

时间:2019-12-03 18:49:41

标签: c++

[Linux]

我正在用C ++编写基于CLI的程序。我正在为程序的所有主I / O使用主终端窗口,但是我想将一些信息输出到单独的终端窗口。有办法吗?

示例:

void debug(std::string output)
{
    //open new terminal
    ...

    std::cout << output << std::endl;
}

//output to debug window
debug("reach point");

0 个答案:

没有答案