Lines Matching +full:kind +full:- +full:of +full:- +full:intr
2 * Copyright 2019-2023,2024 Thomas E. Dickey *
5 * Permission is hereby granted, free of charge, to any person obtaining a *
6 * copy of this software and associated documentation files (the *
10 * copies of the Software, and to permit persons to whom the Software is *
14 * in all copies or substantial portions of the Software. *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
24 * Except as contained in this notice, the name(s) of the above copyright *
50 /* they neglected to define struct winsize in termios.h -- it is only
129 * Mode-setting logic
134 * commonly-altered ones are defined.
149 /* control-character defaults */
182 #define DISABLED(val) (((_POSIX_VDISABLE != -1) \
192 tty_settings->c_cc[item] = CHK(tty_settings->c_cc[item], value)
315 clear_flags(tty_settings->c_iflag, (IGNBRK in reset_tty_settings()
325 set_flags(tty_settings->c_iflag, (BRKINT in reset_tty_settings()
331 clear_flags(tty_settings->c_oflag, (0 in reset_tty_settings()
345 set_flags(tty_settings->c_oflag, (OPOST in reset_tty_settings()
351 if (ioctl(fd, TIOCMGET, &modem_bits) == -1) in reset_tty_settings()
354 /* cannot check - use the behavior from tset */ in reset_tty_settings()
357 clear_flags(tty_settings->c_cflag, mask); in reset_tty_settings()
359 set_flags(tty_settings->c_cflag, (CS8 | CREAD)); in reset_tty_settings()
360 clear_flags(tty_settings->c_lflag, (ECHONL in reset_tty_settings()
366 set_flags(tty_settings->c_lflag, (ISIG in reset_tty_settings()
401 * Update the values of the erase, interrupt, and kill characters in the TTY
404 * SVr4 tset (e.g., Solaris 2.5) only modifies the intr, quit or erase
418 if (DISABLED(tty_settings->c_cc[VERASE]) || my_erase >= 0) { in set_control_chars()
419 tty_settings->c_cc[VERASE] = UChar((my_erase >= 0) in set_control_chars()
424 if (DISABLED(tty_settings->c_cc[VINTR]) || my_intr >= 0) { in set_control_chars()
425 tty_settings->c_cc[VINTR] = UChar((my_intr >= 0) in set_control_chars()
430 if (DISABLED(tty_settings->c_cc[VKILL]) || my_kill >= 0) { in set_control_chars()
431 tty_settings->c_cc[VKILL] = UChar((my_kill >= 0) in set_control_chars()
448 set_flags(tty_settings->c_oflag, ONLCR); in set_conversions()
449 set_flags(tty_settings->c_iflag, ICRNL); in set_conversions()
450 set_flags(tty_settings->c_lflag, ECHO); in set_conversions()
451 set_flags(tty_settings->c_oflag, OXTABS); in set_conversions()
456 clear_flags(tty_settings->c_oflag, ONLCR); in set_conversions()
457 clear_flags(tty_settings->c_iflag, ICRNL); in set_conversions()
462 clear_flags(tty_settings->c_oflag, OXTABS); in set_conversions()
464 set_flags(tty_settings->c_lflag, (ECHOE | ECHOK)); in set_conversions()
493 * This is done before 'if' and 'is', so they can recover in case of error.
532 old_settings->c_oflag & (TAB3 | ONLCR | OCRNL | ONLRET)) { in send_init_strings()
533 old_settings->c_oflag &= (TAB3 | ONLCR | OCRNL | ONLRET); in send_init_strings()
555 need_flush |= sent_string(TIPARM_2(set_lr_margin, 0, columns - 1)); in send_init_strings()
563 columns - 1)); in send_init_strings()
572 columns - 1)); in send_init_strings()
574 for (i = 0; i < columns - 1; i++) { in send_init_strings()
616 newer = new_settings->c_cc[which]; in show_tty_change()
617 older = old_settings->c_cc[which]; in show_tty_change()
638 (void) fprintf(stderr, "control-%c (^%c).\n", UChar(newer), UChar(newer)); in show_tty_change()
676 * Set window size if not set already, but update our copy of the values if the