Expand/Shrink

text_rows

Platform: WINDOWS
Definition: requires(WINDOWS) -- (or explicit test around calls as below)
if platform()=WINDOWS then -- (if requires(WINDOWS) is not being used)
    integer i2 = text_rows(integer i1)
end if
Description: Set the number of lines on a text-mode screen to i1 if possible. i2 will be set to the actual new number of lines.
pwa/p2js: Not supported
Comments: Values of 25, 28, 43 and 50 lines are supported by most video cards.

NB This is a legacy routine that only ever had any real effect after using Alt-Enter at a DOS prompt to go full screen, which I think has not been possible since Windows XP.
Implementation: via :%opTextRows / ftext_rows() in builtins\VM\pfileioN.e (an autoinclude).