using linux framebuffer for graphics but disabling console text

谁说我不能喝 提交于 2019-12-03 21:35:10

I think what you're looking for is ioctl(fd, KDSETMODE, KD_GRAPHICS). You'll need to set it back before you exit.

Rob

Thanks for your answer R.. I just created an account so the user1645083 is me. That worked perfectly. I did need to figure out that I should be operating the KDSETMODE on the file descriptor of the tty in question, but after that it worked perfectly, thanks!

In response to the comment above, I probably should have given more details. I did try running the graphics program directly from inittab, also running it from .bashrc, as root, as a user.

Here is my code if anyone is interested. It is a hack-job without a doubt, but this is for art not science!

https://gist.github.com/robmint/4753401

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!