Closed guchaojie closed 7 years ago
I am not sure I understand your problem. The line containing the read
is waiting for keyboard events. It is supposed to block until you press any key, then the loop processes the event and waits for the next input. Please describe your problem with more details: what are the exact steps you do, what is the exact output, what are expecting, etc?
I found the problem reason is that I put the turtlesim simulator in front of screen to enter keyboard, the right way is to put terminal in front of screen as active to wait for keyboard event
My enviroment is NAME="Ubuntu" VERSION="16.04.2 LTS (Xenial Xerus)"
kernel is 4.4.0-75-generic running step is: