]> git.feebdaed.xyz Git - 0xmirror/systemd.git/commit
terminal-util: use the right ANSI ST sequence
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Dec 2025 07:00:39 +0000 (08:00 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 24 Dec 2025 08:40:43 +0000 (09:40 +0100)
commitceaa36c21e89aac1d9370b804ee74223bd96f943
tree0e6efab9f455c592d6d13958258f2a5d01431f55
parent22eb3a6bd9f5d1b289ad5b5eb565dfcbbedc6d26
terminal-util: use the right ANSI ST sequence

There are multiple ways to encode ANSI ST, and we generally prefer ESC \
for it, for reasons explained in terminal-util.h. Hence, let's actually
follow this rule in the terminal reset logic, and use the ANSI_ST macro.

This will change the byte sequence generated (as it means we use ESC \
rather than BEL), but it doesn't change behaviour, as the two sequences
should be equivalent.
src/basic/terminal-util.c