Most ASCII-based OSes that support standard computer keyboards support control keys via the control characters; i.e., Ctrl+A => '\1' ... Ctrl+Z => '\32' (26 == 032). -- "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." -- Blair P. Houghton Please: do not email me copies of your posts to comp.lang.c do not ask me C questions via email; post them instead