projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4 release
[unix-history]
/
usr
/
src
/
cmd
/
ex
/
exrecover.c
diff --git
a/usr/src/cmd/ex/exrecover.c
b/usr/src/cmd/ex/exrecover.c
index
9781fb9
..
f121644
100644
(file)
--- a/
usr/src/cmd/ex/exrecover.c
+++ b/
usr/src/cmd/ex/exrecover.c
@@
-1,4
+1,5
@@
-/* Copyright (c) 1979 Regents of the University of California */
+/* Copyright (c) 1980 Regents of the University of California */
+static char *sccsid = "@(#)exrecover.c 6.1 10/18/80";
#include "ex.h"
#include "ex_temp.h"
#include "ex_tty.h"
#include "ex.h"
#include "ex_temp.h"
#include "ex_tty.h"
@@
-175,8
+176,13
@@
error(str, inf)
{
fprintf(stderr, str, inf);
{
fprintf(stderr, str, inf);
+#ifndef USG3TTY
gtty(2, &tty);
if ((tty.sg_flags & RAW) == 0)
gtty(2, &tty);
if ((tty.sg_flags & RAW) == 0)
+#else
+ ioctl(2, TCGETA, &tty);
+ if (tty.c_lflag & ICANON)
+#endif
fprintf(stderr, "\n");
exit(1);
}
fprintf(stderr, "\n");
exit(1);
}