X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=os2.c;h=ca0eb54264c33687bceb26f3d16abbac308a2888;hp=c6a7835d36a926aaf02b1209da66add44b6cb8b3;hb=d5826a672dd4afc591476655b4905cb6542cd89c;hpb=b0629033955fcfdcd93a4a2cf3ab29e8adc56200 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);