Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using linux framebuffer for graphics but disabling console text

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

like image 585
user1645083 Avatar asked Feb 11 '13 03:02

user1645083


Video Answer


1 Answers

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

like image 161
R.. GitHub STOP HELPING ICE Avatar answered Oct 25 '22 11:10

R.. GitHub STOP HELPING ICE