using linux framebuffer for graphics but disabling

2020-06-23 17:07发布

I have some c code that draws simple graphics on the linux framebuffer console. I'm also using the raspberry pi and it's composite video output. The OS is raspbian, and i'm doing a low level solution without using X.

My graphics are working well, and i'm also able to read the usb keyboard and respond to key presses.

Currently there is a tty terminal that my graphics are written over. The tty is still active and key presses are echoed to the screen.

What I want to achieve is to disable all console messages and ttys on the framebuffer so only my graphics are shown. Does anyone have a good way of doing this? Perhaps disabling the tty on that virtual console?

Rob

1条回答
小情绪 Triste *
2楼-- · 2020-06-23 17:39

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

查看更多
登录 后发表回答