Hi Beta,
Welcome to the forum.
sys_read does not return until the "enter" key is hit. With just 1 in rdx, you do not get this. Get at least 2. Throw away the linefeed if you don't want it. I'm not in the mood to fool with this, but I think that'll solve your problem...
Best,
Frank