In linux, you can use the ncurses library to use the terminal as a text buffer: move the cursor around, and write text. It can also draw windows and other hi-level widgets. check here check here 转载于:https://www.cnblogs.com/miaoz/p/4002106.html