From eb63b9b8f4cecb34c2478282567862bc48ef256d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:41 +0100 Subject: Imported from util-linux-2.10f tarball. --- misc-utils/setterm.c | 57 ++-------------------------------------------------- 1 file changed, 2 insertions(+), 55 deletions(-) (limited to 'misc-utils/setterm.c') diff --git a/misc-utils/setterm.c b/misc-utils/setterm.c index b9e4c0dad..36d3be190 100644 --- a/misc-utils/setterm.c +++ b/misc-utils/setterm.c @@ -12,7 +12,7 @@ * * Sanity increases by Cafeine Addict [sic]. * - * Powersave features by, todd j. derr + * Powersave features by todd j. derr * * Converted to terminfo by Kars de Jong (jongk@cs.utwente.nl) * @@ -27,7 +27,6 @@ * [ -reset ] * [ -initialize ] * [ -cursor [on|off] ] - * [ -keyboard pc|olivetti|dutch|extended ] * [ -repeat [on|off] ] * [ -appcursorkeys [on|off] ] * [ -linewrap [on|off] ] @@ -162,7 +161,7 @@ extern int klogctl(int type, char *buf, int len); /* Static variables. */ /* Option flags. Set if the option is to be invoked. */ -int opt_term, opt_reset, opt_initialize, opt_cursor, opt_keyboard; +int opt_term, opt_reset, opt_initialize, opt_cursor; int opt_linewrap, opt_snow, opt_softscroll, opt_default, opt_foreground; int opt_background, opt_bold, opt_blink, opt_reverse, opt_underline; int opt_store, opt_clear, opt_blank, opt_snap, opt_snapfile, opt_standout; @@ -252,33 +251,6 @@ int *bad_arg; /* Set to true if an error is detected. */ } } -#if 0 -void parse_keyboard(argc, argv, option, opt_keyboard, bad_arg) -int argc; /* Number of arguments for this option. */ -char *argv[]; /* Arguments for this option. */ -int *option; /* Keyboard flag to set. */ -int *opt_keyboard; /* Keyboard type to set. */ -int *bad_arg; /* Set to true if an error is detected. */ -{ -/* Parse a -keyboard specification. */ - - if (argc != 1 || *option) *bad_arg = TRUE; - *option = TRUE; - if (argc == 1) { - if (strcmp(argv[0], "pc") == 0) - *opt_keyboard = PC; - else if (strcmp(argv[0], "olivetti") == 0) - *opt_keyboard = OLIVETTI; - else if (strcmp(argv[0], "dutch") == 0) - *opt_keyboard = DUTCH; - else if (strcmp(argv[0], "extended") == 0) - *opt_keyboard = EXTENDED; - else - *bad_arg = TRUE; - } -} -#endif - void par_color(argc, argv, option, opt_color, bad_arg) int argc; /* Number of arguments for this option. */ char *argv[]; /* Arguments for this option. */ @@ -659,10 +631,6 @@ int *bad_arg; /* Set to true if an error is detected. */ parse_none(argc, argv, &opt_initialize, bad_arg); else if (STRCMP(option, "cursor") == 0) parse_switch(argc, argv, &opt_cursor, &opt_cu_on, bad_arg); -#if 0 - else if (STRCMP(option, "keyboard") == 0) - parse_keyboard(argc, argv, &opt_keyboard, &opt_ke_type, bad_arg); -#endif else if (STRCMP(option, "repeat") == 0) parse_switch(argc, argv, &opt_repeat, &opt_rep_on, bad_arg); else if (STRCMP(option, "appcursorkeys") == 0) @@ -752,7 +720,6 @@ char *prog_name; /* Name of this program. */ #if 0 fprintf(stderr, _(" [ -snow [on|off] ]\n")); fprintf(stderr, _(" [ -softscroll [on|off] ]\n")); - fprintf(stderr, _(" [ -keyboard pc|olivetti|dutch|extended ]\n")); #endif fprintf(stderr, _(" [ -repeat [on|off] ]\n")); fprintf(stderr, _(" [ -appcursorkeys [on|off] ]\n")); @@ -833,26 +800,6 @@ int vcterm; /* Set if terminal is a virtual console. */ putp(ti_entry("civis")); } -#if 0 - /* -keyboard pc|olivetti|dutch|extended. Vc only. */ - if (opt_keyboard && vcterm) { - switch (opt_ke_type) { - case PC: - printf("%s%s%s", DCS, _("keyboard.pc"), ST); - break; - case OLIVETTI: - printf("%s%s%s", DCS, _("keyboard.olivetti"), ST); - break; - case DUTCH: - printf("%s%s%s", DCS, _("keyboard.dutch"), ST); - break; - case EXTENDED: - printf("%s%s%s", DCS, _("keyboard.extended"), ST); - break; - } - } -#endif - /* -linewrap [on|off]. Vc only (vt102) */ if (opt_linewrap && vcterm) { if (opt_li_on) -- cgit v1.2.3-55-g7522