in reply to Re: Non-blocking reading on STDIN?
in thread Non-blocking reading on STDIN?

thanks, betterworld!
It is related to the setting of the tty. After running command "stty -icanon", it worked out.

thanks again