diff options
| author | Kim F. Storm | 2004-08-19 10:08:15 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-08-19 10:08:15 +0000 |
| commit | fa51fa32b7d7eb52f3c61d6c12da1054192f0758 (patch) | |
| tree | d953e43866a7bde9fce91978d81504a1c56ae796 /src | |
| parent | ca4313d5ab8ce1f4802a35dd35764887507e7c5e (diff) | |
| download | emacs-fa51fa32b7d7eb52f3c61d6c12da1054192f0758.tar.gz emacs-fa51fa32b7d7eb52f3c61d6c12da1054192f0758.zip | |
(child_setup_tty, init_sys_modes): Use CDISABLE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 7ffb2bb7db5..b120dcd950d 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -613,9 +613,9 @@ child_setup_tty (out) | |||
| 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 | ||
| @@ -634,11 +634,11 @@ child_setup_tty (out) | |||
| 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 | ||
| @@ -1479,10 +1479,10 @@ nil means don't delete them until `list-processes' is run. */); | |||
| 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 | { |