阅读背景:

如何在执行C程序期间显示自定义提示?

来源:互联网 

I'm trying to emulate a terminal using a C program in Linux and need my program to display a custom prompt while the program executes. Is there a way to display it using my C program? (I can always try to printf "My-prompt" every line manually, but I'm looking for a better way). Also I can't use any additional libraries other than the basic ones so GNU Readline library and editline library wouldn't work (as suggested in another thread). for example:I'm trying to emulate a terminal using a C prog




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: