mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:44:58 +00:00
Utilities: Make less
accept 'page up' and 'page down' keys
This commit is contained in:
parent
f99507bf02
commit
19d34414bc
1 changed files with 3 additions and 1 deletions
|
@ -369,8 +369,10 @@ int main(int argc, char** argv)
|
|||
} else if (sequence == "k" || sequence == "\e[A") {
|
||||
if (!emulate_more)
|
||||
pager.up();
|
||||
} else if (sequence == " ") {
|
||||
} else if (sequence == " " || sequence == "\e[6~") {
|
||||
pager.down_page();
|
||||
} else if (sequence == "\e[5~") {
|
||||
pager.up_page();
|
||||
}
|
||||
|
||||
if (quit_at_eof && pager.at_end())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue