Autoscale head and tail

If no -n parameter is specified, the number of output lines will be
the screen size - 2