issue warning when no tty nor window system available