class_docstr: This class represents a process running in a pseudoterminal.
  
  The main constructor is the :meth:`spawn` classmethod.
docstr: Set the terminal window size of the child tty.
  
  This will cause a SIGWINCH signal to be sent to the child. This does not
  change the physical window size. It changes the size reported to
  TTY-aware applications like vi or curses -- applications that respond to
  the SIGWINCH signal.
docstr_tok: ["Set","the","terminal","window","size","of","the","child","tty",".","This","will","cause","a","SIGWINCH","signal","to","be","sent","to","the","child",".","This","does","not","change","the","physical","window","size",".","It","changes","the","size","reported","to","TTY-aware","applications","like","vi","or","curses","--","applications","that","respond","to","the","SIGWINCH","signal","."]
code: def setwinsize(self, rows, cols):
      """Set the terminal window size of the child tty.
  
      This will cause a SIGWINCH signal to be sent to the child. This does not
      change the physical window size. It changes the size reported to
      TTY-aware applications like vi or curses -- applications that respond to
      the SIGWINCH signal.
      """
      return _setwinsize(self.fd, rows, cols)
  
imports: import codecs
  import errno
  import fcntl
  import io
  import os
  import pty
  import resource
  import signal
  import struct
  import sys
  import termios
  import time
  from pty import STDIN_FILENO, CHILD
  from .util import which, PtyProcessError
label_desc: Use image node_id 27 for calling the PtyProcess obj's underlying member method code with example usage: obj.setwinsize(rows, cols) and returns: _setwinsize