Function: te-down-vertically-or-scroll
te-down-vertically-or-scroll is a byte-compiled function defined in
terminal.el.gz.
Signature
(te-down-vertically-or-scroll)
Documentation
Move down a line vertically, or scroll at bottom.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/terminal.el.gz
;; ^p ^j
;; Handle the `do' or `nl' termcap capability.
;;>> I am not sure why this broken, obsolete, capability is here.
;;>> Perhaps it is for VIle. No comment was made about why it
;;>> was added (in "Sun Dec 6 01:22:27 1987 Richard Stallman")
(defun te-down-vertically-or-scroll ()
"Move down a line vertically, or scroll at bottom."
(let ((column (current-column)))
(end-of-line)
(if (eobp)
(progn
(delete-region (point-min) (+ (point-min) te-width))
(goto-char (point-min))
(delete-char 1)
(goto-char (point-max))
(insert ?\n)
(insert-char ?\s te-width)
(beginning-of-line))
(forward-line 1))
(move-to-column column))
(te-set-window-start))