Don't try to check for Esc if redirected - fix for #11?