diff options
| author | Richard M. Stallman | 1992-09-12 07:46:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-09-12 07:46:41 +0000 |
| commit | e2b40c238ee71ab58423b661cde0e6fb7789284a (patch) | |
| tree | 1a7f4cc38ba4582b47d14ab8378082525f0ded33 /src | |
| parent | 2102829e7dbe763be7d14851cc811ccaafcdcb60 (diff) | |
| download | emacs-e2b40c238ee71ab58423b661cde0e6fb7789284a.tar.gz emacs-e2b40c238ee71ab58423b661cde0e6fb7789284a.zip | |
(init_sys_modes): Handle VDSUSP like V_DSUSP.
Use CDISABLE, not CDEL.
Turn off IEXTEN if it exists.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index daaf19cc994..74b895288e9 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -783,6 +783,9 @@ init_sys_modes () | |||
| 783 | #endif | 783 | #endif |
| 784 | tty.main.c_lflag &= ~ECHO; /* Disable echo */ | 784 | tty.main.c_lflag &= ~ECHO; /* Disable echo */ |
| 785 | tty.main.c_lflag &= ~ICANON; /* Disable erase/kill processing */ | 785 | tty.main.c_lflag &= ~ICANON; /* Disable erase/kill processing */ |
| 786 | #ifdef IEXTEN | ||
| 787 | tty.main.c_iflag &= ~IEXTEN; /* Disable other editing characters. */ | ||
| 788 | #endif | ||
| 786 | tty.main.c_lflag |= ISIG; /* Enable signals */ | 789 | tty.main.c_lflag |= ISIG; /* Enable signals */ |
| 787 | if (flow_control) | 790 | if (flow_control) |
| 788 | { | 791 | { |
| @@ -811,19 +814,19 @@ init_sys_modes () | |||
| 811 | tty.main.c_cc[VMIN] = 1; /* Input should wait for at least 1 char */ | 814 | tty.main.c_cc[VMIN] = 1; /* Input should wait for at least 1 char */ |
| 812 | tty.main.c_cc[VTIME] = 0; /* no matter how long that takes. */ | 815 | tty.main.c_cc[VTIME] = 0; /* no matter how long that takes. */ |
| 813 | #ifdef VSWTCH | 816 | #ifdef VSWTCH |
| 814 | tty.main.c_cc[VSWTCH] = CDEL; /* Turn off shell layering use | 817 | tty.main.c_cc[VSWTCH] = CDISABLE; /* Turn off shell layering use |
| 815 | of C-z */ | 818 | of C-z */ |
| 816 | #endif /* VSWTCH */ | 819 | #endif /* VSWTCH */ |
| 817 | #if defined (mips) || defined (HAVE_TCATTR) | 820 | #if defined (mips) || defined (HAVE_TCATTR) |
| 818 | /* The following code looks like the right thing in general, | ||
| 819 | but it is said to cause a crash on USG V.4. | ||
| 820 | Let's play safe by turning it on only for the MIPS. */ | ||
| 821 | #ifdef VSUSP | 821 | #ifdef VSUSP |
| 822 | tty.main.c_cc[VSUSP] = CDEL; /* Turn off mips handling of C-z. */ | 822 | tty.main.c_cc[VSUSP] = CDISABLE; /* Turn off mips handling of C-z. */ |
| 823 | #endif /* VSUSP */ | 823 | #endif /* VSUSP */ |
| 824 | #ifdef V_DSUSP | 824 | #ifdef V_DSUSP |
| 825 | tty.main.c_cc[V_DSUSP] = CDEL; /* Turn off mips handling of C-y. */ | 825 | tty.main.c_cc[V_DSUSP] = CDISABLE; /* Turn off mips handling of C-y. */ |
| 826 | #endif /* V_DSUSP */ | 826 | #endif /* V_DSUSP */ |
| 827 | #ifdef VDSUSP /* Some systems have VDSUSP, some have V_DSUSP. */ | ||
| 828 | tty.main.c_cc[VDSUSP] = CDISABLE; | ||
| 829 | #endif /* VDSUSP */ | ||
| 827 | #endif /* mips or HAVE_TCATTR */ | 830 | #endif /* mips or HAVE_TCATTR */ |
| 828 | #ifdef AIX | 831 | #ifdef AIX |
| 829 | #ifndef IBMR2AIX | 832 | #ifndef IBMR2AIX |