diff options
author | Karel Zak | 2006-12-07 00:26:14 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:26:14 +0100 |
commit | d03dd60840f0a08464d5266539ad356aefe24b03 (patch) | |
tree | 0a9ad240a7a88eb6b11b152974a7a51a0df79b75 /misc-utils | |
parent | Imported from util-linux-2.12pre tarball. (diff) | |
download | kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.gz kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.tar.xz kernel-qcow2-util-linux-d03dd60840f0a08464d5266539ad356aefe24b03.zip |
Imported from util-linux-2.12a tarball.
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/setterm.1 | 3 | ||||
-rw-r--r-- | misc-utils/setterm.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/misc-utils/setterm.1 b/misc-utils/setterm.1 index 6fffa219c..c20333bad 100644 --- a/misc-utils/setterm.1 +++ b/misc-utils/setterm.1 @@ -111,7 +111,8 @@ reverse). Turns underline mode on or off (see \fB\-ulcolor\fP). .TP .BR \-store " (virtual consoles only)" -Stores the terminal's current rendering options as the default values. +Stores the terminal's current rendering options (foreground and +background colors) as the values to be used at reset-to-default. .TP .BR \-clear " [" all ] Clears the screen and "homes" the cursor, as diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c index 7d1057217..f83adf036 100644 --- a/misc-utils/setterm.c +++ b/misc-utils/setterm.c @@ -1085,7 +1085,7 @@ perform_sequence(int vcterm) { result = klogctl(6, NULL, 0); if (result != 0) - printf(_("klogctl error: %s\n"), strerror(result)); + printf(_("klogctl error: %s\n"), strerror(errno)); } /* -msglevel [0-8] */ @@ -1093,7 +1093,7 @@ perform_sequence(int vcterm) { /* 8 -- Set level of messages printed to console */ result = klogctl(8, NULL, opt_msglevel_num); if (result != 0) - printf(_("klogctl error: %s\n"), strerror(result)); + printf(_("klogctl error: %s\n"), strerror(errno)); } /* -blength [0-2000] */ |