问题描述
我想知道如何更好的控制输入和使用C.例如输出创建控制台应用程序,如何在文本编辑器nano屏幕的某一部分显示该文件的内容,然后保存清单命令在底部固定。我知道你可以使用Win32 API的做到这一点在Windows中,但什么是Unix / Linux上相当于?
I would like to know how to create console applications with better control of input and output using C. For example, how does the text-editor nano display the file contents in a certain portion of the screen and then keep a list of commands stationary on the bottom. I know you can use the win32 api to do this in Windows, but what is the Unix/Linux equivalent?
推荐答案
More than likely there's a ncurses interface that controls the screen drawing and placement of items on the screen in a certain position. The api is standard across the linux systems and on unix also, some may be implementation defined depending on the variant of curses used under the commercial variants of unix but otherwise some standard ncurses functionality are compatible.
希望这有助于
诚挚的问候,
汤姆。
Hope this helps,Best regards,Tom.
这篇关于的Linux / UNIX控制台图形/控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!