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
Bill added more buffers, and I put in sccs.
[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
..
e12d722
100644
(file)
--- a/
usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.c
+++ b/
usr/src/usr.bin/ex/ex3.7recover/ex3.7recover.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 = "@(#)ex3.7recover.c 4.2 %G%";
#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);
}