aboutsummaryrefslogtreecommitdiff
path: root/vi.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-06-26 02:06:08 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-06-26 02:06:08 +0000
commit78b0e379d7c2db84eec34ccd89cf9afb67b94901 (patch)
treeae5bb34caa3b88968102e93193a01e4d90109b92 /vi.c
parentaddabd6f16aece578d94d810d3a9e9dc88f2cdb7 (diff)
downloadbusybox-w32-78b0e379d7c2db84eec34ccd89cf9afb67b94901.tar.gz
busybox-w32-78b0e379d7c2db84eec34ccd89cf9afb67b94901.tar.bz2
busybox-w32-78b0e379d7c2db84eec34ccd89cf9afb67b94901.zip
Vladimir's last_patch_15
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}