Use window-screen-lines when available

Fixes #160