X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=os2.c;h=ca0eb54264c33687bceb26f3d16abbac308a2888;hp=c6a7835d36a926aaf02b1209da66add44b6cb8b3;hb=48763357ef69f0b711fc332b13e2170ab914d881;hpb=eaf59bc9a6f0a5c917df2f51be128ae29ba6a595 diff --git a/os2.c b/os2.c index c6a7835..ca0eb54 100644 --- a/os2.c +++ b/os2.c @@ -23,8 +23,8 @@ int getch(void) { struct termio oldstate, newstate; ioctl(0,TCGETA,&oldstate); newstate = oldstate; - newstate.c_iflag = 0; - newstate.c_lflag = 0; + newgame.state.c_iflag = 0; + newgame.state.c_lflag = 0; ioctl(0,TCSETA,&newstate); read(0, &chbuf, 1); ioctl(0,TCSETA,&oldstate);