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:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of hands

hands

Photo of graphics

graphics

Photo of x11

x11

Related news:

News photo

Switch 2 hands-on registration now open in Europe, and you'll get up to four hours play time

News photo

Nintendo Switch 2 hands-on events: how to register, dates and locations

News photo

Nintendo Switch 2 biggest questions on graphics, battery life, and stick drift