mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
Userland: Add pager option to man and use less by default
This commit is contained in:
parent
c6fa2f196a
commit
1ec061d666
Notes:
sideshowbarker
2024-07-18 10:13:09 +09:00
Author: https://github.com/petelliott
Commit: 1ec061d666
Pull-request: https://github.com/SerenityOS/serenity/pull/8486
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard ✅
2 changed files with 57 additions and 2 deletions
|
@ -288,6 +288,8 @@ static String get_key_sequence()
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
VERIFY(isatty(STDOUT_FILENO));
|
||||
|
||||
char const* filename = "-";
|
||||
char const* prompt = "?f%f :.(line %l)?e (END):.";
|
||||
bool dont_switch_buffer = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue