Lines Matching +full:toggle +full:- +full:mode

2  * Copyright (C) 1984-2024  Mark Nudelman
15 * But all string options, and a few non-string options, require
23 * TOGGLE The option is being changed from within the program.
108 * Handler for -o option.
125 case TOGGLE:
158 * Handler for -O option.
181 return -1;
191 return -1;
193 *frac = -1;
213 while (len > 2 && buf[len-1] == '0')
214 len--;
222 * Handlers for -j option.
229 case TOGGLE:
249 * Handlers for -# option.
256 case TOGGLE:
325 * Handler for -S option.
331 case TOGGLE:
339 * Handler for -t option.
352 case TOGGLE:
377 * Handler for -T option.
389 case TOGGLE:
406 * Handler for -p option.
419 * In "more" mode, the -p argument is a command,
439 * Handler for -P option.
449 case TOGGLE:
474 * Handler for the -b option.
482 case TOGGLE:
494 * Handler for the -i option.
501 case TOGGLE:
511 * Handler for the -V option.
518 case TOGGLE:
523 set_output(1); /* Force output to stdout per GNU standard for --version output. */
531 "Copyright (C) 1984-2024 Mark Nudelman\n\n";
534 if (version[strlen(version)-1] == 'x')
601 return AT_COLOR_SUBSEARCH(namechar-'0');
602 return -1;
607 * Handler for the -D option.
618 case TOGGLE:
635 error("Set --use-color before changing colors", NULL_PARG);
660 if (type == TOGGLE)
678 error("SGR mode is %s", &p);
700 v = v || ckd_add(&n, n, *s - '0');
702 if (!v && n > tabstops[i-1])
712 tabdefault = tabstops[ntabstops-1] - tabstops[ntabstops-2];
716 * Handler for the -x option.
727 case TOGGLE:
752 * Handler for the -" option.
762 case TOGGLE:
770 error("-\" must be followed by 1 or 2 chars", NULL_PARG);
790 * Handler for the --rscroll option.
800 case TOGGLE: {
804 if (strcmp(fmt, "-") == 0)
823 p.p_string = rscroll_char ? prchar((LWCHAR) rscroll_char) : "-";
830 * "-?" means display a help message.
839 case TOGGLE:
853 case TOGGLE:
855 s, "--match-shift", calc_match_shift);
872 * Handler for the --mouse option.
879 case TOGGLE:
892 * Handler for the --wheel-lines option.
900 case TOGGLE:
910 * Handler for the --line-number-width option.
920 case TOGGLE:
934 * Handler for the --status-column-width option.
944 case TOGGLE:
958 * Handler for the --file-size option.
966 case TOGGLE:
976 * Handler for the --intr option.
986 case TOGGLE:
999 * Return the next number from a comma-separated list.
1000 * Return -1 if the list entry is missing or empty.
1008 return -1;
1012 return -1;
1020 return -1;
1028 * Parse a parameter to the --header option.
1036 if (*s == '-')
1059 * Handler for the --header option.
1071 case TOGGLE: {
1088 error("Header (lines,columns,line-number) is %s", &parg);
1094 * Handler for the --search-options option.
1108 case TOGGLE:
1120 case '-': st = 0; break;
1125 st |= SRCH_SUBSEARCH(*s-'0');
1147 *bp++ = '-';
1156 * Handler for the --no-search-headers, --no-search-header-lines
1157 * and --no-search-header-cols options.
1164 case TOGGLE:
1200 * Handler for the --tty option.
1227 return (sc_height - header_lines + swindow);