projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another step in consolidating the saved-state globals.
[super-star-trek.git]
/
os2.c
diff --git
a/os2.c
b/os2.c
index c6a7835d36a926aaf02b1209da66add44b6cb8b3..ca0eb54264c33687bceb26f3d16abbac308a2888 100644
(file)
--- a/
os2.c
+++ b/
os2.c
@@
-23,8
+23,8
@@
int getch(void) {
struct termio oldstate, newstate;
\r
ioctl(0,TCGETA,&oldstate);
\r
newstate = oldstate;
\r
struct termio oldstate, newstate;
\r
ioctl(0,TCGETA,&oldstate);
\r
newstate = oldstate;
\r
- newstate.c_iflag = 0;
\r
- newstate.c_lflag = 0;
\r
+ new
game.
state.c_iflag = 0;
\r
+ new
game.
state.c_lflag = 0;
\r
ioctl(0,TCSETA,&newstate);
\r
read(0, &chbuf, 1);
\r
ioctl(0,TCSETA,&oldstate);
\r
ioctl(0,TCSETA,&newstate);
\r
read(0, &chbuf, 1);
\r
ioctl(0,TCSETA,&oldstate);
\r