aboutsummaryrefslogtreecommitdiff
path: root/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'vi.c')
-rw-r--r--vi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vi.c b/vi.c
index bd183e8b0..e1ff9336f 100644
--- a/vi.c
+++ b/vi.c
@@ -19,7 +19,7 @@
19 */ 19 */
20 20
21char *vi_Version = 21char *vi_Version =
22 "$Id: vi.c,v 1.9 2001/06/23 13:49:14 andersen Exp $"; 22 "$Id: vi.c,v 1.10 2001/06/26 02:06:08 bug1 Exp $";
23 23
24/* 24/*
25 * To compile for standalone use: 25 * To compile for standalone use:
@@ -3152,8 +3152,10 @@ static void rawmode(void)
3152 term_vi.c_lflag &= (~ICANON & ~ECHO); // leave ISIG ON- allow intr's 3152 term_vi.c_lflag &= (~ICANON & ~ECHO); // leave ISIG ON- allow intr's
3153 term_vi.c_iflag &= (~IXON & ~ICRNL); 3153 term_vi.c_iflag &= (~IXON & ~ICRNL);
3154 term_vi.c_oflag &= (~ONLCR); 3154 term_vi.c_oflag &= (~ONLCR);
3155#ifndef linux
3155 term_vi.c_cc[VMIN] = 1; 3156 term_vi.c_cc[VMIN] = 1;
3156 term_vi.c_cc[VTIME] = 0; 3157 term_vi.c_cc[VTIME] = 0;
3158#endif
3157 erase_char = term_vi.c_cc[VERASE]; 3159 erase_char = term_vi.c_cc[VERASE];
3158 tcsetattr(0, TCSANOW, &term_vi); 3160 tcsetattr(0, TCSANOW, &term_vi);
3159} 3161}