aboutsummaryrefslogtreecommitdiff
path: root/bin/csh
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-06-18 14:08:44 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-06-18 14:08:44 +0000
commitf3e38b1c4c6b54b2d3205fd0dacaf53936766f41 (patch)
treea9a012e0a25c8d3e794b14956b6ae8c9f4c210d4 /bin/csh
parentebd70bcd2cb0208988fd3c2ec1c0bace0de1cf38 (diff)
downloadsrc-f3e38b1c4c6b54b2d3205fd0dacaf53936766f41.tar.gz
src-f3e38b1c4c6b54b2d3205fd0dacaf53936766f41.zip
Notes
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/csh/file.c b/bin/csh/file.c
index 0d1a0b5716ab..639e09c00029 100644
--- a/bin/csh/file.c
+++ b/bin/csh/file.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: file.c,v 1.2 1994/09/24 02:54:03 davidg Exp $
+ * $Id: file.c,v 1.3 1995/05/30 00:06:33 rgrimes Exp $
*/
#ifndef lint
@@ -112,14 +112,14 @@ static void
setup_tty(on)
int on;
{
- static struct termios tchars;
+ struct termios tchars;
(void) tcgetattr(SHIN, &tchars);
if (on) {
tchars.c_cc[VEOL] = ESC;
if (tchars.c_lflag & ICANON)
- on = TCSANOW;
+ on = TCSADRAIN;
else {
on = TCSAFLUSH;
tchars.c_lflag |= ICANON;
@@ -127,10 +127,10 @@ setup_tty(on)
}
else {
tchars.c_cc[VEOL] = _POSIX_VDISABLE;
- on = TCSANOW;
+ on = TCSADRAIN;
}
- (void) tcsetattr(SHIN, TCSANOW, &tchars);
+ (void) tcsetattr(SHIN, on, &tchars);
}
/*