1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Userland: Add pager option to man and use less by default

This commit is contained in:
Peter Elliott 2021-07-06 01:43:17 -06:00 committed by Ali Mohammad Pur
parent c6fa2f196a
commit 1ec061d666
2 changed files with 57 additions and 2 deletions

View file

@ -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;