Function: ghostel--viewport-start
ghostel--viewport-start is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--viewport-start)
Documentation
Position of the first line of the terminal viewport, or nil if rows<=0.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--viewport-start ()
"Position of the first line of the terminal viewport, or nil if rows<=0."
(let ((tr (or ghostel--term-rows 0)))
(when (> tr 0)
(save-excursion
(goto-char (point-max))
(forward-line (- tr))
(line-beginning-position)))))