Function: te-newline
te-newline is a byte-compiled function defined in terminal.el.gz.
Signature
(te-newline)
Documentation
Move down a line, optionally do more processing, perhaps wrap/scroll, move to start of new line, clear to end of line.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/terminal.el.gz
;;;; More or less straight-forward terminal escapes
;; ^j, meaning `newline' to non-display programs.
;; (Who would think of ever writing a system which doesn't understand
;; display terminals natively? Un*x: The Operating System of the Future.)
(defun te-newline ()
"Move down a line, optionally do more processing, perhaps wrap/scroll,
move to start of new line, clear to end of line."
(end-of-line)
(cond ((not terminal-more-processing))
((< (setq te-more-count (1- te-more-count)) 0)
(te-set-more-count t))
((eq te-more-count 0)
;; this doesn't return
(te-more-break)))
(if (eobp)
(progn
(delete-region (point-min) (+ (point-min) te-width))
(goto-char (point-min))
(if terminal-scrolling
(progn (delete-char 1)
(goto-char (point-max))
(insert ?\n))))
(forward-char 1)
(delete-region (point) (+ (point) te-width)))
(insert-char ?\s te-width)
(beginning-of-line)
(te-set-window-start))