@more rest
#event {SCREEN RESIZE} {#math pageheight {%0 - 4};#send {@pagelength $pageheight};#send {@linelength %1};}
#screen get rows fullheight
#screen get cols width
#math height {$fullheight - 4}
#send {@pagelength $height}
#send {@linelength $width}
#split