的Linux / UNIX控制台图形/控制 [英] Linux/Unix Console Graphics/Control

查看:92
本文介绍了的Linux / UNIX控制台图形/控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何更好的控制输入和使用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?

推荐答案

更​​可能有一个的ncurses 控制在一定的位置,屏幕上的项目的屏幕绘图和布局的接口。 API是整个Linux系统和UNIX也是标准的,有些可能是实现定义取决于UNIX下的商业变种使用诅咒的变种,但另有一些标准的ncurses功能是兼容的。

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控制台图形/控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆