don't use readline if tty doesn't support it