code: func (t *terminal) GetTerminalParams() rsession.TerminalParams {
  	t.mu.Lock()
  	defer t.mu.Unlock()
  	return t.params
  }
docs: // GetTerminalParams is a fast call to get cached terminal parameters
  // and avoid extra system call.