]> git.ipfire.org Git - thirdparty/systemd.git/commit
prompt-util: add helpers that paint some "chrome" on top/bottom of screen
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Aug 2025 21:24:33 +0000 (23:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Sep 2025 13:46:30 +0000 (15:46 +0200)
commit8191bbd23cb85ed92c7021a03dd6fe370bcfb9ff
tree2f083824d5287e5c61880e0ec53306bf2629c604
parent71f3f1818f0e1cba565c6a7dde2ca1390a31ed6a
prompt-util: add helpers that paint some "chrome" on top/bottom of screen

We'll soon have three different kind of interactive "wizard"-like console
UIs: systemd-firstboot, homectl firstboot and soon systemd-sysinstall.
Let's give them a limited, recognizable visual identity, to distinguish
them from the usual console output: let's add a bit of "chrome" to the
top and bottom of the screen, that we show during ther wizards, but hide
again afterwards.

This makes use of the DECSTBM sequence that reduces the scrolling area
by chopping off blocks from the top or bottom of the screen. The
sequence is quite standard, given it has been part of VT100 already.
xterm, vte, Linux console all support it just fine.
man/os-release.xml
src/shared/prompt-util.c
src/shared/prompt-util.h