rework how to get current screen height (fix #337)

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>