]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stty: adjust --help to match POSIX 2024
authorCollin Funk <collin.funk1@gmail.com>
Fri, 1 Nov 2024 05:43:18 +0000 (22:43 -0700)
committerPádraig Brady <P@draigBrady.com>
Fri, 1 Nov 2024 12:49:50 +0000 (12:49 +0000)
* src/stty.c (usage): Mark cols, rows, and size as standardized by
POSIX.
* doc/coreutils.texi (Special): Likewise.

doc/coreutils.texi
src/stty.c

index 77eed8e7c62d6f1bbeb23a639700672d649928e3..60a07b2ef79ec61118660340b639a192ef7dd987 100644 (file)
@@ -15855,13 +15855,14 @@ Set the output speed to @var{n}.
 @item rows @var{n}
 @opindex rows
 Tell the tty kernel driver that the terminal has @var{n} rows.
-Non-POSIX.
 
 @item cols @var{n}
-@itemx columns @var{n}
 @opindex cols
+Tell the kernel that the terminal has @var{n} columns.
+
+@item columns @var{n}
 @opindex columns
-Tell the kernel that the terminal has @var{n} columns.  Non-POSIX.
+Same as @samp{cols}.  Non-POSIX.
 
 @item drain
 @opindex drain
@@ -15886,7 +15887,6 @@ Print the number of rows and columns that the kernel thinks the
 terminal has.  (Systems that don't support rows and columns in the kernel
 typically use the environment variables @env{LINES} and @env{COLUMNS}
 instead; however, GNU @command{stty} does not know anything about them.)
-Non-POSIX.
 
 @item line @var{n}
 @opindex line
index 95091744aa48eae51f7b19b910ee7cda319e9cdb..db993888fd2ef4648280a970086b486b8d243927 100644 (file)
@@ -632,7 +632,7 @@ Special settings:\n\
 "), stdout);
 #ifdef TIOCGWINSZ
       fputs (_("\
* cols N        tell the kernel that the terminal has N columns\n\
  cols N        tell the kernel that the terminal has N columns\n\
  * columns N     same as cols N\n\
 "), stdout);
 #endif
@@ -653,8 +653,8 @@ Special settings:\n\
 "), stdout);
 #ifdef TIOCGWINSZ
       fputs (_("\
* rows N        tell the kernel that the terminal has N rows\n\
* size          print the number of rows and columns according to the kernel\n\
  rows N        tell the kernel that the terminal has N rows\n\
  size          print the number of rows and columns according to the kernel\n\
 "), stdout);
 #endif
       fputs (_("\