Get the latest tech news
Hands-On Graphics Without X11
A crash course on direct framebuffer and keyboard access via NetBSD’s wscons
wscons abstracts the details of the hardware display and input devices so that the kernel and the user-space configuration tools can treat them all uniformly across the tens of platforms that NetBSD supports. These drivers wait for hardware input, generate events, and provide a map of keycodes to key symbols to the upper layer so that wskbd can operate in generic terms. Once we know that we have to switch the console device to a graphical mode before mapping the framebuffer, and having access to the pixel format described in the fbinfo structure… drawing something fun is just a few byte manipulation operations away:
Or read this on Hacker News