use "screen length" to determine cell height

fixes #409
use "screen position" for command history scrolling

fixes #247