tty_opened
if (tty_opened(otp))
if (!tty_opened(tp)) {
if (tty_opened(tp)) {
if (tty_opened(tp))
if (!tty_opened(tp)) {
#define tty_opened_ns(tp) ((tp) != NULL && tty_opened(tp))
if (!tty_opened(sysmouse_tty))
if (tty_gone(tp) || !tty_opened(tp)) {
if (tty_opened(tp) || tp->t_flags & TF_OPENCLOSE) {
if (!tty_opened(tp)) {
if (!tty_opened(tp) || CMP_FLAG(c, CLOCAL))