610 |
s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */ |
s.main.c_cflag = (s.main.c_cflag & ~CBAUD) | B9600; /* baud rate sanity */ |
611 |
#endif /* HPUX */ |
#endif /* HPUX */ |
612 |
|
|
613 |
|
#ifdef SIGNALS_VIA_CHARACTERS |
614 |
|
/* the QUIT and INTR character are used in process_send_signal |
615 |
|
so set them here to something useful. */ |
616 |
|
if (s.main.c_cc[VQUIT] == 0377) |
617 |
|
s.main.c_cc[VQUIT] = '\\'&037; /* Control-\ */ |
618 |
|
if (s.main.c_cc[VINTR] == 0377) |
619 |
|
s.main.c_cc[VINTR] = 'C'&037; /* Control-C */ |
620 |
|
#endif /* not SIGNALS_VIA_CHARACTERS */ |
621 |
|
|
622 |
#ifdef AIX |
#ifdef AIX |
623 |
/* AIX enhanced edit loses NULs, so disable it */ |
/* AIX enhanced edit loses NULs, so disable it */ |
624 |
#ifndef IBMR2AIX |
#ifndef IBMR2AIX |
629 |
don't ignore break, but don't signal either, so it looks like NUL. */ |
don't ignore break, but don't signal either, so it looks like NUL. */ |
630 |
s.main.c_iflag &= ~IGNBRK; |
s.main.c_iflag &= ~IGNBRK; |
631 |
s.main.c_iflag &= ~BRKINT; |
s.main.c_iflag &= ~BRKINT; |
632 |
/* QUIT and INTR work better as signals, so disable character forms */ |
/* rms: Formerly it set s.main.c_cc[VINTR] to 0377 here |
633 |
s.main.c_cc[VINTR] = 0377; |
unconditionally. Then a SIGNALS_VIA_CHARACTERS conditional |
634 |
#ifdef SIGNALS_VIA_CHARACTERS |
would force it to 0377. That looks like duplicated code. */ |
635 |
/* the QUIT and INTR character are used in process_send_signal |
#ifndef SIGNALS_VIA_CHARACTERS |
|
so set them here to something useful. */ |
|
|
if (s.main.c_cc[VQUIT] == 0377) |
|
|
s.main.c_cc[VQUIT] = '\\'&037; /* Control-\ */ |
|
|
if (s.main.c_cc[VINTR] == 0377) |
|
|
s.main.c_cc[VINTR] = 'C'&037; /* Control-C */ |
|
|
#else /* no TIOCGPGRP or no TIOCGLTC or no TIOCGETC */ |
|
636 |
/* QUIT and INTR work better as signals, so disable character forms */ |
/* QUIT and INTR work better as signals, so disable character forms */ |
637 |
s.main.c_cc[VQUIT] = 0377; |
s.main.c_cc[VQUIT] = 0377; |
638 |
s.main.c_cc[VINTR] = 0377; |
s.main.c_cc[VINTR] = 0377; |