I would like to realize in GTK3 a text window where to redirect the stdout using the c language. Could you help me with suggestions about how to start. Thank you.
我想在GTK3中实现一个文本窗口,在其中使用c语言重定向stdout。你能给我一些建议吗?谢谢你!
1 个解决方案
#1
0
I think what you'll need to do is write GTK code that reads from a named pipe and writes to the text box, and when you start your other c code (assuming you're starting it from a shell command), redirect stdout to the named pipe.
我认为您需要做的是编写从命名管道读取并写入文本框的GTK代码,当您启动其他c代码(假设是从shell命令启动它)时,将stdout重定向到命名管道。
#1
0
I think what you'll need to do is write GTK code that reads from a named pipe and writes to the text box, and when you start your other c code (assuming you're starting it from a shell command), redirect stdout to the named pipe.
我认为您需要做的是编写从命名管道读取并写入文本框的GTK代码,当您启动其他c代码(假设是从shell命令启动它)时,将stdout重定向到命名管道。