{
struct terminal *t = get_terminal (terminal, throw);
- if (t && t->type == output_initial)
- return NULL;
-
if (t && t->type != output_termcap)
{
if (throw)
{
Lisp_Object args[2];
args[0] = intern ("suspend-tty-functions");
- args[1] = make_number (t->id);
+ XSETTERMINAL (args[1], t);
Frun_hook_with_args (2, args);
}
}
{
Lisp_Object args[2];
args[0] = intern ("resume-tty-functions");
- args[1] = make_number (t->id);
+ XSETTERMINAL (args[1], t);
Frun_hook_with_args (2, args);
}
}
/* Protect against recursive calls. Fdelete_frame in
delete_terminal calls us back when it deletes our last frame. */
- if (terminal->deleted)
+ if (!terminal->name)
return;
if (terminal->type != output_termcap)