]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: new scols_column_{refer,get}_annotation routines
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Sun, 21 Sep 2025 05:07:58 +0000 (01:07 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Wed, 24 Sep 2025 01:29:50 +0000 (21:29 -0400)
commit5836f3ee6dd2fd18af0e2fda1698115b4f9619a0
tree8deeb853d6a3b73c09ccae3572cd3593a22bb99b
parent53a8e762fc58574d453c07edc262e9f613cabf9d
libsmartcols: new scols_column_{refer,get}_annotation routines

The new routines can be used to add an annotation to columns
which are intended to serve as descriptions for column headers.

These annotations are formatted with OSC8 escape sequences and
then sent to the output stream. A supporting terminal can then
display the formatted string as a tooltip.

This can be fairly useful when an application wants to provide
a translated description for a column header name, since the
latter is sometimes a mere abbreviation and not necessarily
telling enough.

Addresses: #1291
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
include/ttyutils.h
libsmartcols/docs/libsmartcols-sections.txt
libsmartcols/src/column.c
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/libsmartcols.sym
libsmartcols/src/print.c
libsmartcols/src/smartcolsP.h