ESCape problem with tetris/tetrix game
Thad P Floryan
thad at cup.portal.com
Mon Dec 4 21:10:33 AEST 1989
Having just seen Hans Jespersen's posting of "rocks" (aka asteroids) and tetrix
to unix-pc.sources, had to see if they worked. :-)
Both are really neat, but I encountered a really bizarre after-game problem
with tetrix. I sent the attached message to Hans, and am curious if anyone
else is having the same problem. If you are, would probably be best to send
Hans your speculations and/or fixes so he can update the master sources and
release an official fix (if one is necessary).
Hans can be reached at:
hjespers at attcan.uucp (OR) uunet!attcan!hjespers
Thad Floryan [ thad at cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]
-------------------- attachment follows --------------------
Hi!
Just saw your recent postings of "rocks" (aka asteroids) and "tetris" (aka
tetrix). Really neat! Thanks for porting and posting them!
But I did discover a strange problem occurring ONLY with tetrix, and it
concerns restoring the proper tty modes after the game. Specifically, after
playing tetrix, the ESCape key is fooled into sending TWO instead of ONE
escape for each depression. I first thought it was a problem with my keyboard,
but simply logging out and logging back in cured the problem.
I discovered the problem in EMACS (where the ESCape key is an important one)
and in ksh where the ESCape causes filename completion.
Doing "$ stty -a > prior" before running tetrix and "$ stty -a > after"
reveals nothing changed. Yet, the action of the ESCape key definitely changes
after running tetrix.
I've never encountered this problem before and am at a loss. Did/do you have
this problem on your system? I'm running 3.51a and invoke tetrix from ksh; it
makes no difference invoking tetrix from sh or ksh. Simply entering "q" upon
seeing the initial tetrix menu (and not playing the game) causes the weird
action of the ESCape key upon exit.
Thad
Thad Floryan [ thad at cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]
More information about the Unix-pc.general
mailing list