fix nTox cmdline input slow problem.

the master nTox use c_sleep, this slow down cmd input speed.

use select with timeout, improve the hard sleep.