HanOS Character Rain Terminal UI Based on libvterm and Intel Integrated Graphics

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
junjie
Posts: 8
Joined: Thu Oct 14, 2021 9:58 pm

HanOS Character Rain Terminal UI Based on libvterm and Intel Integrated Graphics

Post by junjie »

I recently brought the terminal and Intel graphics driver together in HanOS to create a UI with a “character rain” effect.

The terminal is built on libvterm. The console server passes terminal output to libvterm for parsing, then renders the characters and styles to the terminal surface. Common VT features—including cursor control, colors, scrolling, and full-screen terminal programs—work through standard terminal behavior.

The animated background is driven by a userspace GPU server. On supported Intel integrated graphics, a display plane presents the scrolling character-rain texture, with the terminal window layered on top. The terminal handles the text; the GPU display layer handles the animated background.

Transparency varies by GPU generation. On Skylake, the terminal window can be translucent over the character-rain background. Haswell and Broadwell display planes don’t support the transparency blending needed here, so the terminal window remains opaque. The character-rain desktop can still run on those platforms, but the window won’t show the background through it.

This is my first attempt at using an iGPU to optimize UI display. I’ll continue exploring how to make better use of integrated graphics.

Project: https://github.com/jjwang/HanOS

Demo Video:
https://packaged-media.redd.it/b41puvid ... b81e18d0d4
HanOS: Microkernel-based General Purpose Operating System
visit https://github.com/jjwang/HanOS
Post Reply