]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: make page and arrow up/down to update view
authorSami Kerola <kerolasa@iki.fi>
Wed, 6 May 2020 19:19:23 +0000 (20:19 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 12 May 2020 08:22:09 +0000 (10:22 +0200)
commit1f861935a7292acbecc4d1618657e740e46175d9
tree28ff9b38fa7b440a33bdd0ab3c8e7095e2db6afd
parent09070e1a658e70ec203150e4fa5f486b32771858
more: make page and arrow up/down to update view

Aim was to introduce page and arrow up/down keys to more(1), but that
also required merging colon_command() and more_key_command() functions.

The more_key_commands enum is pointless from computers point of view.
The command identification performed in read_command() inline with
more_key_command() execution -- but that would be hard for humans, and
source code ought to serve both parties.

Reference: https://github.com/karelzak/util-linux/pull/1003
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c