Mercurial > emacs
comparison src/sysdep.c @ 56714:ba670a86ca95
(child_setup_tty, init_sys_modes): Use CDISABLE.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 19 Aug 2004 10:08:15 +0000 |
parents | fb72da59e269 |
children | 1a5509ec45da 22658e29bd48 d8411455de48 |
comparison
equal
deleted
inserted
replaced
56713:7e315ff338bf | 56714:ba670a86ca95 |
---|---|
611 #endif /* HPUX */ | 611 #endif /* HPUX */ |
612 | 612 |
613 #ifdef SIGNALS_VIA_CHARACTERS | 613 #ifdef SIGNALS_VIA_CHARACTERS |
614 /* the QUIT and INTR character are used in process_send_signal | 614 /* the QUIT and INTR character are used in process_send_signal |
615 so set them here to something useful. */ | 615 so set them here to something useful. */ |
616 if (s.main.c_cc[VQUIT] == 0377) | 616 if (s.main.c_cc[VQUIT] == CDISABLE) |
617 s.main.c_cc[VQUIT] = '\\'&037; /* Control-\ */ | 617 s.main.c_cc[VQUIT] = '\\'&037; /* Control-\ */ |
618 if (s.main.c_cc[VINTR] == 0377) | 618 if (s.main.c_cc[VINTR] == CDISABLE) |
619 s.main.c_cc[VINTR] = 'C'&037; /* Control-C */ | 619 s.main.c_cc[VINTR] = 'C'&037; /* Control-C */ |
620 #endif /* not SIGNALS_VIA_CHARACTERS */ | 620 #endif /* not SIGNALS_VIA_CHARACTERS */ |
621 | 621 |
622 #ifdef AIX | 622 #ifdef AIX |
623 /* AIX enhanced edit loses NULs, so disable it */ | 623 /* AIX enhanced edit loses NULs, so disable it */ |
632 /* rms: Formerly it set s.main.c_cc[VINTR] to 0377 here | 632 /* rms: Formerly it set s.main.c_cc[VINTR] to 0377 here |
633 unconditionally. Then a SIGNALS_VIA_CHARACTERS conditional | 633 unconditionally. Then a SIGNALS_VIA_CHARACTERS conditional |
634 would force it to 0377. That looks like duplicated code. */ | 634 would force it to 0377. That looks like duplicated code. */ |
635 #ifndef SIGNALS_VIA_CHARACTERS | 635 #ifndef SIGNALS_VIA_CHARACTERS |
636 /* QUIT and INTR work better as signals, so disable character forms */ | 636 /* QUIT and INTR work better as signals, so disable character forms */ |
637 s.main.c_cc[VQUIT] = 0377; | 637 s.main.c_cc[VQUIT] = CDISABLE; |
638 s.main.c_cc[VINTR] = 0377; | 638 s.main.c_cc[VINTR] = CDISABLE; |
639 s.main.c_lflag &= ~ISIG; | 639 s.main.c_lflag &= ~ISIG; |
640 #endif /* no TIOCGPGRP or no TIOCGLTC or no TIOCGETC */ | 640 #endif /* no TIOCGPGRP or no TIOCGLTC or no TIOCGETC */ |
641 s.main.c_cc[VEOL] = 0377; | 641 s.main.c_cc[VEOL] = CDISABLE; |
642 s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */ | 642 s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */ |
643 #endif /* AIX */ | 643 #endif /* AIX */ |
644 | 644 |
645 #else /* not HAVE_TERMIO */ | 645 #else /* not HAVE_TERMIO */ |
646 | 646 |
1477 #ifndef IBMR2AIX | 1477 #ifndef IBMR2AIX |
1478 /* AIX enhanced edit loses NULs, so disable it. */ | 1478 /* AIX enhanced edit loses NULs, so disable it. */ |
1479 tty.main.c_line = 0; | 1479 tty.main.c_line = 0; |
1480 tty.main.c_iflag &= ~ASCEDIT; | 1480 tty.main.c_iflag &= ~ASCEDIT; |
1481 #else | 1481 #else |
1482 tty.main.c_cc[VSTRT] = 255; | 1482 tty.main.c_cc[VSTRT] = CDISABLE; |
1483 tty.main.c_cc[VSTOP] = 255; | 1483 tty.main.c_cc[VSTOP] = CDISABLE; |
1484 tty.main.c_cc[VSUSP] = 255; | 1484 tty.main.c_cc[VSUSP] = CDISABLE; |
1485 tty.main.c_cc[VDSUSP] = 255; | 1485 tty.main.c_cc[VDSUSP] = CDISABLE; |
1486 #endif /* IBMR2AIX */ | 1486 #endif /* IBMR2AIX */ |
1487 if (flow_control) | 1487 if (flow_control) |
1488 { | 1488 { |
1489 #ifdef VSTART | 1489 #ifdef VSTART |
1490 tty.main.c_cc[VSTART] = '\021'; | 1490 tty.main.c_cc[VSTART] = '\021'; |