std10093, that was an improvement. Thanks. But, try hitting <Tab> several times before <Enter>.
I just see empty new lines, and no messages any more.
EDIT:
Oh, I just added || c == '\t':
Code:// .... } while ( c == ' ' || c == '\n' || c == '\t'); // If it is an enter or whitespace or tab, eat them.