]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: beef up show_menu()
authorLennart Poettering <lennart@poettering.net>
Thu, 6 Feb 2025 11:02:24 +0000 (12:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 17 Feb 2025 14:21:13 +0000 (15:21 +0100)
commitb6478aa12f731caac97c984b4cc97dace0bb3e99
tree48f4f4be3012cb7ebf5874b98d9c61d6148dbb94
parent8fcd85768beef5382fb4cb238148889c0b7eee4b
terminal-util: beef up show_menu()

This modernizes the function a bit, and adds some bits:

1. whether to show numbers before entries is now optional, and if they
   are shown they are displayed in grey.

2. a common prefix can now be grayed out (later useful for completion
   support)

3. some variables have been named to clarify their purpose

4. the table display dimensions can now be auto-sized (by specifying
   SIZE_MAX and number of columns and column width)
src/basic/terminal-util.c
src/basic/terminal-util.h
src/firstboot/firstboot.c
src/home/homectl.c