From: Collin Funk Date: Sun, 22 Feb 2026 07:33:56 +0000 (-0800) Subject: doc: stty: mention the -g does not save the terminal window size X-Git-Tag: v9.11~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad189d87b66e1cd2d64c32478b58c116e1ce7c7;p=thirdparty%2Fcoreutils.git doc: stty: mention the -g does not save the terminal window size * doc/coreutils.texi (stty invocation): Mention that 'stty -g' does not save the terminal window size as allowed by POSIX.1-2024. --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index def1a88201..aeb258b231 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -14665,6 +14665,10 @@ Print all current settings in a form that can be used as an argument to another @command{stty} command to restore the current settings. This option may not be used in combination with any line settings. +POSIX-1.2024 allows implementations of the @code{-g} option to exclude +the terminal window size from the output. This is the behavior of GNU +@command{stty}. + @end table Many settings can be turned off by preceding them with a @samp{-}.