Fui: C library for interacting with the framebuffer in a TTY context
Published on: 2025-07-18 08:05:37
fui
fui, standing for framebuffer user interface, is a C library for interacting with the framebuffer in a tty context. It writes directly to the framebuffer device, using a system of layers for drawing. Some stuff that it does:
Draws pixel values to an arbitrary number of layers, which are then composited together and rendered to the framebuffer.
Primitive drawing functions for lines, rectangles, and circles.
Text rendering using a bitmap font.
Event handling for keyboard and mouse input (using libevdev), with a more generic event system implemented that can be used for other events.
A cheeky sound system using alsa that can play sine tones and chords for now.
Installation
The actual library is in fui , and can be compiled and installed with:
make sudo make install
The library can then be used by including -Lfui -l:libfui.a in your compiler flags. The library is statically linked, so you don't need to worry about shared libraries.
Examples
There are some (half-baked for no
... Read full article.