parameters: (self, signum=None, frame=None)
docstring: Tries to catch resize signals sent from the terminal.
docstring_summary: Tries to catch resize signals sent from the terminal.
docstring_tokens: Tries to catch resize signals sent from the terminal .
function: def _handle_resize(self, signum=None, frame=None):
          'Tries to catch resize signals sent from the terminal.'
  
          h, w = array('h', ioctl(self.fd, termios.TIOCGWINSZ, '\0' * 8))[:2]
          self.term_width = w
function_tokens: def _handle_resize ( self , signum = None , frame = None ) : h , w = array ( 'h' , ioctl ( self . fd , termios . TIOCGWINSZ , '\0' * 8 ) ) [ : 2 ] self . term_width = w