From: Benno Schulenberg Date: Sat, 15 Feb 2025 16:18:35 +0000 (+0100) Subject: setterm: put an option and its description in a single message X-Git-Tag: v2.42-start~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a67eda5d09d68187346f5f82dc935956b16484;p=thirdparty%2Futil-linux.git setterm: put an option and its description in a single message And improve a bit of markup and a wording in the man page. Signed-off-by: Benno Schulenberg --- diff --git a/term-utils/setterm.1.adoc b/term-utils/setterm.1.adoc index 38dc81ab5..3fdee3283 100644 --- a/term-utils/setterm.1.adoc +++ b/term-utils/setterm.1.adoc @@ -115,14 +115,14 @@ Sets the VESA powerdown interval in minutes. Without an argument, it defaults to *--powersave* _mode_:: Valid values for _mode_ are: -*vsync|on*;; +*vsync*|*on*;; Puts the monitor into VESA vsync suspend mode. *hsync*;; Puts the monitor into VESA hsync suspend mode. *powerdown*;; Puts the monitor into VESA powerdown mode. *off*;; -Turns monitor VESA powersaving features. +Turns the monitor's powersaving features off. *--regtabs*[**=**1-160]:: Clears all tab stops, then sets a regular tab stop pattern, with one tab every specified number of positions. Without an argument, it defaults to *8*. Virtual consoles only. diff --git a/term-utils/setterm.c b/term-utils/setterm.c index 53bc6785d..801095c87 100644 --- a/term-utils/setterm.c +++ b/term-utils/setterm.c @@ -430,8 +430,8 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" --file name of the dump file\n"), out); fputs(USAGE_SEPARATOR, out); - fputs(_(" --powersave on|vsync|hsync|powerdown|off\n"), out); - fputs(_(" set vesa powersaving features\n"), out); + fputs(_(" --powersave on|vsync|hsync|powerdown|off\n" + " set vesa powersaving features\n"), out); fputs(_(" --powerdown[=<0-60>] set vesa powerdown interval in minutes\n"), out); fputs(USAGE_SEPARATOR, out);