From 3fb88cb76d27831bed18bd910713db9b522b9394 Mon Sep 17 00:00:00 2001 From: Larkin Nickle Date: Sun, 29 Sep 2019 16:25:29 -0400 Subject: [PATCH] Help+man.md: Add man sections Also correct minor formatting mistake in TelnetServer.md. --- Applications/Help/ManualModel.cpp | 8 +++++++- Base/usr/share/man/man1/man.md | 8 +++++++- Base/usr/share/man/man8/TelnetServer.md | 9 +++++---- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Applications/Help/ManualModel.cpp b/Applications/Help/ManualModel.cpp index bf56fc29b3..33af07ae66 100644 --- a/Applications/Help/ManualModel.cpp +++ b/Applications/Help/ManualModel.cpp @@ -6,7 +6,13 @@ static ManualSectionNode s_sections[] = { { "1", "Command-line programs" }, - { "2", "System calls" } + { "2", "System calls" }, + { "3", "Libraries" }, + { "4", "Special files" }, + { "5", "File formats" }, + { "6", "Games" }, + { "7", "Miscellanea" }, + { "8", "Sysadmin tools" } }; ManualModel::ManualModel() diff --git a/Base/usr/share/man/man1/man.md b/Base/usr/share/man/man1/man.md index 368dea7179..fba1436526 100644 --- a/Base/usr/share/man/man1/man.md +++ b/Base/usr/share/man/man1/man.md @@ -21,8 +21,14 @@ The Serenity manual is split into the following *sections*, or *chapters*: 1. Command-line programs 2. System calls +3. Libraries +4. Special files +5. File formats +6. Games +7. Miscellanea +8. Sysadmin tools -More sections will be added in the future. +Sections are subject to change in the future. ## Examples diff --git a/Base/usr/share/man/man8/TelnetServer.md b/Base/usr/share/man/man8/TelnetServer.md index 01e6d92f70..3dd3ec5349 100644 --- a/Base/usr/share/man/man8/TelnetServer.md +++ b/Base/usr/share/man/man8/TelnetServer.md @@ -5,20 +5,21 @@ TelnetServer - Serenity telnet server ## Synopsis ```**sh -$ TelnetServer [options] +# TelnetServer [options] ``` ## Description -`TelnetServer` is a basic telnet server for Serenity. By default, it +TelnetServer is a basic telnet server for Serenity. By default, it runs on port 23 and provides a shell upon connection. ## Options + * `-p`: Choose different port for TelnetServer to attach to. -* `-c`: Choose different program for TelnetServer to run on connection. +* `-c`: Choose different program for TelnetServer to run on connection. Arguments can be passed to the program. ## Examples ```sh -$ TelnetServer -p 24 -c /usr/bin/nyancat +# TelnetServer -p 24 -c "/usr/bin/nyancat -f 60" ```