On Sun, 2010-04-25 at 19:57 -0500, cnbiz850 wrote: > It's not a real matter of conversion, but of to what format. > It gets worse than that, because what your program sees when keys are pressed also depends what DOS/Windows compiler you're using: - the DJGPP port of gcc offers near-perfect source code compatibility with the Linux port of gcc but its support libraries return LF if ENTER is typed and zero if function or cursor keys are typed. - Borland C 4.5 is almost totally incompatible with gcc at the source code level (it uses non-standard keyboard access functions) but it does return CR for ENTER. The only way to read function and cursor key presses is to look at the keyboard flags register and retrieve and use scan codes. I'm certain there are other variations generated by other compilers, but these are the DOS/Windows compilers I know. Anyway, that should be enough to give you the picture... Martin