summaryrefslogtreecommitdiff
path: root/misc-utils/setterm.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:46 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:46 +0100
commitc07ebfa1e02d208ab12430e6791ea147bcfaf9c0 (patch)
treed44a755098286f5d553c7aea1a73d98c2995d6ec /misc-utils/setterm.c
parent66ee8158b69525e12060ef558cb5d77feadab1dc (diff)
downloadutil-linux-c07ebfa1e02d208ab12430e6791ea147bcfaf9c0.tar.gz
Imported from util-linux-2.11b tarball.
Diffstat (limited to 'misc-utils/setterm.c')
-rw-r--r--misc-utils/setterm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c
index 92161d01..2e265fc5 100644
--- a/misc-utils/setterm.c
+++ b/misc-utils/setterm.c
@@ -16,7 +16,7 @@
*
* Converted to terminfo by Kars de Jong (jongk@cs.utwente.nl)
*
- * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org>
+ * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
* - added Native Language Support
*
*
@@ -859,17 +859,17 @@ perform_sequence(int vcterm) {
/* -snow [on|off]. Vc only. */
if (opt_snow && vcterm) {
if (opt_sn_on)
- printf("%s%s%s", DCS, _("snow.on"), ST);
+ printf("%s%s%s", DCS, "snow.on", ST);
else
- printf("%s%s%s", DCS, _("snow.off"), ST);
+ printf("%s%s%s", DCS, "snow.off", ST);
}
/* -softscroll [on|off]. Vc only. */
if (opt_softscroll && vcterm) {
if (opt_so_on)
- printf("%s%s%s", DCS, _("softscroll.on"), ST);
+ printf("%s%s%s", DCS, "softscroll.on", ST);
else
- printf("%s%s%s", DCS, _("softscroll.off"), ST);
+ printf("%s%s%s", DCS, "softscroll.off", ST);
}
#endif
@@ -1165,6 +1165,7 @@ try_ioctl:
}
rows = screenbuf[0];
cols = screenbuf[1];
+
for (i=0; i<rows; i++) {
strncpy(buf, screenbuf+2+(cols*i), cols);
buf[cols] = '\0';