It seems like inserting fewer blank lines, the closer I type the command at the bottom of the terminal window. If I print it at the top of the terminal window, it inserts the almost full window height of the empty lines; if I print it at the very bottom, empty lines will not be inserted into it.
It seems that the pager program outputs the output to the bottom of the terminal window, but I want the result to be directly under my command or at the top, like in Linux git.
I can expect the expected behavior using git --no-pager log , but what if I want to use a pager?
source share