|
|
@ -3,13 +3,13 @@ use history;
|
|
|
|
|
|
|
|
|
|
|
|
pub fn lookup(name: &str) -> Option<String> {
|
|
|
|
pub fn lookup(name: &str) -> Option<String> {
|
|
|
|
Some(match name {
|
|
|
|
Some(match name {
|
|
|
|
"" | "/" | "help" => format!("{}{}", HEADER, HELP),
|
|
|
|
"" | "/" | "home" | "home/" => format!("{}{}", HEADER, HOME),
|
|
|
|
"home" => format!("{}{}", HEADER, HOME),
|
|
|
|
"help" | "help/" => format!("{}{}", HEADER, HELP),
|
|
|
|
"history" => history::as_raw_menu(),
|
|
|
|
"history" => history::as_raw_menu(),
|
|
|
|
"bookmarks" => bookmarks::as_raw_menu(),
|
|
|
|
"bookmarks" => bookmarks::as_raw_menu(),
|
|
|
|
"keys" => format!("{}{}", HEADER, KEYS),
|
|
|
|
"help/keys" => format!("{}{}", HEADER, KEYS),
|
|
|
|
"nav" => format!("{}{}", HEADER, NAV),
|
|
|
|
"help/nav" => format!("{}{}", HEADER, NAV),
|
|
|
|
"types" => format!("{}{}", HEADER, TYPES),
|
|
|
|
"help/types" => format!("{}{}", HEADER, TYPES),
|
|
|
|
_ => return None,
|
|
|
|
_ => return None,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -35,23 +35,23 @@ i
|
|
|
|
i
|
|
|
|
i
|
|
|
|
i ~ * ~
|
|
|
|
i ~ * ~
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1phetch help \x1b[90mctrl-h / help
|
|
|
|
1show help \x1b[90mctrl-h /help phetch
|
|
|
|
1show history \x1b[90mctrl-a /history help
|
|
|
|
1show history \x1b[90mctrl-a /history phetch
|
|
|
|
1show bookmarks \x1b[90mctrl-b /bookmarks help
|
|
|
|
1show bookmarks \x1b[90mctrl-b /bookmarks phetch
|
|
|
|
i\x1b[0m
|
|
|
|
i\x1b[0m
|
|
|
|
";
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
|
|
pub const HELP: &str = "
|
|
|
|
pub const HELP: &str = "
|
|
|
|
i ** help topics **
|
|
|
|
i ** help topics **
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1keyboard shortcuts /keys help
|
|
|
|
1keyboard shortcuts /help/keys phetch
|
|
|
|
1menu navigation /nav help
|
|
|
|
1menu navigation /help/nav phetch
|
|
|
|
1gopher types /types help
|
|
|
|
1gopher types /help/types phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
i ~ * ~
|
|
|
|
i ~ * ~
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1start screen /home help
|
|
|
|
1start screen /home phetch
|
|
|
|
1history /history help
|
|
|
|
1history /history phetch
|
|
|
|
hphetch webpage URL:https://github.com/dvkt/phetch
|
|
|
|
hphetch webpage URL:https://github.com/dvkt/phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
";
|
|
|
|
";
|
|
|
@ -88,7 +88,7 @@ i
|
|
|
|
ithere are three ways to navigate
|
|
|
|
ithere are three ways to navigate
|
|
|
|
imenus in phetch:
|
|
|
|
imenus in phetch:
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1up & down arrows /nav help
|
|
|
|
1up & down arrows /help/nav phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
iuse the up and down arrows or the
|
|
|
|
iuse the up and down arrows or the
|
|
|
|
ictrl-p/ctrl-n combos to select menu
|
|
|
|
ictrl-p/ctrl-n combos to select menu
|
|
|
@ -97,14 +97,14 @@ ior you can use page up & page down
|
|
|
|
i(or - and spacebar) to jump by many
|
|
|
|
i(or - and spacebar) to jump by many
|
|
|
|
ilines quickly.
|
|
|
|
ilines quickly.
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1number keys /nav help
|
|
|
|
1number keys /help/nav phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
iif there are few enough menu items,
|
|
|
|
iif there are few enough menu items,
|
|
|
|
ipressing a number key will open the
|
|
|
|
ipressing a number key will open the
|
|
|
|
iitem immediately. otherwise, it'll
|
|
|
|
iitem immediately. otherwise, it'll
|
|
|
|
ibe selected. use enter to open it.
|
|
|
|
ibe selected. use enter to open it.
|
|
|
|
i
|
|
|
|
i
|
|
|
|
1incremental search /nav help
|
|
|
|
1incremental search /help/nav phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
ijust start typing. phetch will look
|
|
|
|
ijust start typing. phetch will look
|
|
|
|
ifor the first case insensitive match
|
|
|
|
ifor the first case insensitive match
|
|
|
@ -130,26 +130,26 @@ iphetch supports these links:
|
|
|
|
i
|
|
|
|
i
|
|
|
|
0text files /Mirrors/RFC/rfc1436.txt fnord.one 65446
|
|
|
|
0text files /Mirrors/RFC/rfc1436.txt fnord.one 65446
|
|
|
|
1menu items /lawn/ascii bitreich.org
|
|
|
|
1menu items /lawn/ascii bitreich.org
|
|
|
|
3errors /types help
|
|
|
|
3errors /help/types phetch
|
|
|
|
7search servers / forthworks.com 7001
|
|
|
|
7search servers / forthworks.com 7001
|
|
|
|
8telnet links /types help
|
|
|
|
8telnet links /help/types phetch
|
|
|
|
hexternal URLs URL:https://en.wikipedia.org/wiki/Phetch/ help
|
|
|
|
hexternal URLs URL:https://en.wikipedia.org/wiki/Phetch phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
iand these download types:
|
|
|
|
iand these download types:
|
|
|
|
i
|
|
|
|
i
|
|
|
|
4binhex /types help
|
|
|
|
4binhex /help/types phetch
|
|
|
|
5dosfiles /types help
|
|
|
|
5dosfiles /help/types phetch
|
|
|
|
6uuencoded files /types help
|
|
|
|
6uuencoded files /help/types phetch
|
|
|
|
9binaries /types help
|
|
|
|
9binaries /help/types phetch
|
|
|
|
gGIFs /types help
|
|
|
|
gGIFs /help/types phetch
|
|
|
|
Iimages downloads /types help
|
|
|
|
Iimages downloads /help/types phetch
|
|
|
|
ssound files /types help
|
|
|
|
ssound files /help/types phetch
|
|
|
|
ddocuments /types help
|
|
|
|
ddocuments /help/types phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
iphetch does not support:
|
|
|
|
iphetch does not support:
|
|
|
|
i
|
|
|
|
i
|
|
|
|
2CSO Entries /types help
|
|
|
|
2CSO Entries /help/types phetch
|
|
|
|
+Mirrors /types help
|
|
|
|
+Mirrors /help/types phetch
|
|
|
|
TTelnet3270 /types help
|
|
|
|
TTelnet3270 /help/types phetch
|
|
|
|
i
|
|
|
|
i
|
|
|
|
";
|
|
|
|
";
|
|
|
|