Thanks for explaining the whole fgets thing. Ive posted up the console code right after line 00210: thats where it does the do_commands(stdin).
and on line 00230: the do_commands function is defined.
heres the link...
http://sourcepost.sytes.net/sourcevi...ource_id=14882