TTY_FREEZE
c->tty.flags |= TTY_FREEZE;
c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
tty_flags = tty->flags & (TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR);
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE))|TTY_NOCURSOR;
tty->flags = (tty->flags & ~(TTY_BLOCK|TTY_FREEZE|TTY_NOCURSOR))|
c->tty.flags |= TTY_FREEZE;
c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
c->tty.flags |= TTY_FREEZE;
c->tty.flags &= ~(TTY_NOCURSOR|TTY_FREEZE);
if (c->tty.flags & TTY_FREEZE)
tty->flags &= ~(TTY_NOCURSOR|TTY_FREEZE|TTY_BLOCK|TTY_TIMER);