code: function onResize() {
  	if ( this.stdout.columns && this.stdout.rows ) {
  		this.width = this.stdout.columns ;
  		this.height = this.stdout.rows ;
  	}
  
  	this.emit( 'resize' , this.width , this.height ) ;
  }
docs: Called by either SIGWINCH signal or stdout's 'resize' event. It is not meant to be used by end-user.