From: Lennart Poettering Date: Mon, 12 Jan 2026 12:40:27 +0000 (+0100) Subject: man: introduce FANCY_NAME field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01cd5bed33ce48e4e46eea07bc60955d9eea3d3;p=thirdparty%2Fsystemd.git man: introduce FANCY_NAME field --- diff --git a/man/os-release.xml b/man/os-release.xml index 1ab7e652b89..8b652d78f02 100644 --- a/man/os-release.xml +++ b/man/os-release.xml @@ -191,9 +191,34 @@ A pretty operating system name in a format suitable for presentation to the user. May or may not contain a release code name or OS version of some kind, as suitable. If not - set, a default of PRETTY_NAME="Linux" may be used + set, a default of PRETTY_NAME="Linux" may be used. - Example: PRETTY_NAME="Fedora 17 (Beefy Miracle)". + Example: PRETTY_NAME="Fedora 17 (Beefy Miracle)" + + + + FANCY_NAME= + + Similar to PRETTY_NAME=, but may contain ANSI sequences and + fancy UTF-8 characters such as emojis. If defined this shall preferably used when displaying the OS + name on modern terminal emulators. If the terminal emulator does not support emojis, + PRETTY_NAME= shall be shown instead, possibly with + ANSI_COLOR= coloring. Use \033 to encode the ESC + character and \\ to encode the backslash character. + + + + Unlike PRETTY_NAME= this field must not contain information that is + present in other fields, in particular the version (already specified in + VERSION=) or the codename (already specified in + VERSION_CODENAME=). + + Example: + FANCY_NAME="🍅 \033[31mTomato\033[0;1mOS\033[0m" + +