projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2ea6fd
)
BSD 1 development
author
Kurt A. Shoens
<kurt@ucbvax.Berkeley.EDU>
Sun, 27 Nov 1977 02:14:02 +0000
(18:14 -0800)
committer
Kurt A. Shoens
<kurt@ucbvax.Berkeley.EDU>
Sun, 27 Nov 1977 02:14:02 +0000
(18:14 -0800)
Work on file s6/reset.c
Synthesized-from: 1bsd
s6/reset.c
[new file with mode: 0644]
patch
|
blob
diff --git a/s6/reset.c
b/s6/reset.c
new file mode 100644
(file)
index 0000000..
be16dd8
--- /dev/null
+++ b/
s6/reset.c
@@ -0,0
+1,21
@@
+main()
+{
+ struct tty {
+ char ispeed,ospeed;
+ char erase,kill;
+ int trash;
+ } tet;
+ gtty(2,&tet);
+ tet.erase = 010;
+ tet.kill = '@';
+ tet.trash = 0332;
+ stty(2,&tet);
+ exit(0);
+/*
+ * reset - set the teletype mode bits to be sensible, erase to ^H, kill to @
+ *
+ * Kurt Shoens
+ *
+ * Very useful after crapping out in raw.
+ */
+}