Get the next input character. If the screen has been modified, then refresh will automatically be called first.