Function: term-reset-size
term-reset-size is a byte-compiled function defined in term.el.gz.
Signature
(term-reset-size HEIGHT WIDTH)
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-reset-size (height width)
(when (or (/= height term-height)
(/= width term-width))
;; Delete all newlines used for wrapping
(when (/= width term-width)
(save-excursion
(term--remove-fake-newlines)))
(let ((point (point)))
(setq term-height height)
(setq term-width width)
(setq term-start-line-column nil)
(setq term-current-row nil)
(setq term-current-column nil)
(term--reset-scroll-region)
;; `term-set-scroll-region' causes these to be set, we have to
;; clear them again since we're changing point (Bug#30544).
(setq term-start-line-column nil)
(setq term-current-row nil)
(setq term-current-column nil)
(goto-char point))
(term--unwrap-visible-long-lines width)))