Simplify the uisimulator I/O routine and let the rockbox thread calling the functions...