From: Sy Ali Date: 2006-06-09T01:12:40+09:00 Subject: Re: pausing until a character is received On 6/8/06, Dave Burt wrote: > Interesting... it appears no trap's necessary on Windows if you're using > _getch. This keeps things simple. Nice. > You can use ?\cC instead of 3. I'll use that directly, but I'm not sure which would be preferred. Either choice might not be entirely portable. > Your trap isn't being added until it's too late. While you're in > read_char, Windows' _getch function will return 3 rather than be > interrupted, so that works fine anyway. I'll get around to the trapping stuff when the time comes, but I figured it was something simple like not adding it in the right order. Making my first unit tests challenged me the same way. =) Thanks for everything.