Function: set-process-window-size

set-process-window-size is a function defined in process.c.

Signature

(set-process-window-size PROCESS HEIGHT WIDTH)

Documentation

Tell PROCESS that it has logical window size WIDTH by HEIGHT.

Value is t if PROCESS was successfully told about the window size, nil otherwise.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

// Defined in /usr/src/emacs/src/process.c
{
  CHECK_PROCESS (process);

  /* All known platforms store window sizes as 'unsigned short'.  */
  unsigned short h = check_uinteger_max (height, USHRT_MAX);
  unsigned short w = check_uinteger_max (width, USHRT_MAX);

  if (NETCONN_P (process)
      || XPROCESS (process)->infd < 0
      || set_window_size (XPROCESS (process)->infd, h, w) < 0)
    return Qnil;
  else
    return Qt;
}