Lukáš Jiřiště [Mon, 11 Mar 2024 13:27:17 +0000 (14:27 +0100)]
Implement j, k for up and down movement in -l mode
This led to the necessity to rename kill to defeat.
The option -k has thus been renamed -d and in the loop mode
"d" key is used for what "k" used to do.
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).