Lukáš Jiřiště [Mon, 11 Mar 2024 13:03:02 +0000 (14:03 +0100)]
Fix "minor" issues
Fix off by one error caused by using the whole terminal height instead
of the height used by the table (without the header).
Add missing initialization.
Fix terminal position indexing as it is 1 based (not 0 based).
Handle newline after printing entry separately in the loop mode as when
the entry at the very bottom of the terminal emits newline the
whole output shifts (erasing header).