if there is no mouse don't loop forever - fixes textmode