Function: window-text-height

Return the height in lines of the text display area of WINDOW.
WINDOW must be a live window and defaults to the selected one.

The returned height does not include the mode line, any header line,
nor any partial-height lines at the bottom of the text area.

(fn &optional WINDOW)