简体   繁体   English

如何使Linux终端刷新帧缓冲区

[英]How to make linux terminal refresh framebuffer

I have written a small app that draws directly on /dev/fb0. 我编写了一个直接在/ dev / fb0上绘制的小应用程序。 I run it in a console-only environment without X-server. 我在没有X服务器的纯控制台环境中运行它。 The problem I have is that once the app exits, the framebuffer stays the way it left it. 我的问题是,一旦应用程序退出,帧缓冲区就会保持它离开它的方式。 Is it possible to make the terminal redraw all it's contents to refresh the screen after the app exits? 应用退出后,是否可以使终端重绘所有内容以刷新屏幕?

What I would do(if it does not depend on design and conceptual requirements) is to issue execve(clear). 我要做的(如果它不取决于设计和概念要求)是发出execve(清除)。 Perhaps even execve(reset) would help. 也许甚至execve(reset)也会有所帮助。 But for the latter i do not guarantee. 但是对于后者,我不保证。 First will surely do the job. 首先一定会做的工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM