in reply to Reading char-by-char from STDIN

use cygwin and then you have a complete environment including the gcc compiler, X windows, the whole bit (or any subset).

http://www.cygwin.com

good luck!
donq