Function: frame-terminal

frame-terminal is a function defined in terminal.c.

Signature

(frame-terminal &optional FRAME)

Documentation

Return the terminal that FRAME is displayed on.

If FRAME is nil, use the selected frame.

The terminal device is represented by its integer identifier.

View in manual

Source Code

// Defined in /usr/src/emacs/src/terminal.c
{
  struct terminal *t = FRAME_TERMINAL (decode_live_frame (frame));

  if (!t)
    return Qnil;
  else
    {
      Lisp_Object terminal;
      XSETTERMINAL (terminal, t);
      return terminal;
    }
}