The problem is that you have to press enter to get STDIN to feed your data to the string. What I want to know is how you read keypresses, or get STDIN to do a character by character feed so you don't have to press enter at the end of each piece of data.