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
release 3.4, June 24, 1980
[unix-history]
/
usr
/
src
/
usr.bin
/
ex
/
ex3.7recover
/
ex3.7recover.c
diff --git
a/usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.c
b/usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.c
index
9781fb9
..
218e65a
100644
(file)
--- a/
usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.c
+++ b/
usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.c
@@
-175,8
+175,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);
}