⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 help.c

📁 早期freebsd实现
💻 C
📖 第 1 页 / 共 2 页
字号:
/* $Id: help.c,v 3.0 1992/02/01 03:09:32 davison Trn $ *//* This software is Copyright 1991 by Stan Barber.  * * Permission is hereby granted to copy, reproduce, redistribute or otherwise * use this software as long as: there is no monetary profit gained * specifically from the use or reproduction of this software, it is not * sold, rented, traded or otherwise marketed, and this copyright notice is * included prominently in any copy made.  * * The author make no claims as to the fitness or correctness of this software * for any use whatsoever, and it is provided as is. Any use of this software * is at the user's own risk.  */#include "EXTERN.h"#include "common.h"#include "trn.h"#include "term.h"#include "INTERN.h"#include "help.h"voidhelp_init(){    ;}inthelp_page(){    int cmd;#ifdef PAGERHELP    doshell(sh,filexp(PAGERHELP));#else    page_init();    if ((cmd = print_lines("\Paging commands:\n\",STANDOUT)) ||    (cmd = print_lines("\n\SP	Display the next page.\n\x	Display the next page decrypted (rot13).\n\d	Display half a page more.\n\CR	Display one more line.\n\^R,v,^X	Restart the current article (v=verbose header, ^X=rot13).\n\",NOMARKING)) ||    (cmd = print_lines("\b	Back up one page.\n\^L,X	Refresh the screen (X=rot13).\n\",NOMARKING)) ||    (cmd = print_lines("\t	Display the entire article tree and all its subjects.\n\",NOMARKING)) ||    (cmd = print_lines("\g pat	Go to (search forward within article for) pattern.\n\G	Search again for current pattern within article.\n\^G	Search for next line beginning with \"Subject:\".\n\TAB	Search for next line beginning with a different character.\n\q	Quit the pager, go to end of article.  Leave article read or unread.\n\j	Junk this article (mark it read).  Goes to end of article.\n\\n\",NOMARKING)) ||    (cmd = print_lines("\The following commands skip the rest of the current article, then behave\n\just as if typed to the 'What next?' prompt at the end of the article:\n\",STANDOUT)) ||    (cmd = print_lines("\n\n	Scan forward for next unread article.\n\N	Go to next article.\n\^N	Scan forward for next unread article with same title.\n\p,P,^P	Same as n,N,^N, only going backwards.\n\-	Go to previously displayed article.\n\",NOMARKING)) ||    (cmd = print_lines("\<, >	Browse the previous/next selected thread.  If no threads are selected,\n\	all threads that had unread news upon entry to the group are considered\n\	selected for browsing.  Entering an empty group browses all threads.\n\[, ]	Go to article's parent/child (try left-/right-arrow also).\n\(, )	Go to article's previous/next sibling (try up-/down-arrow also).\n\{, }	Go to tree's root/leaf.\n\\n\",NOMARKING)) ||    (cmd = print_lines("\The following commands also take you to the end of the article.\n\Type h at end of article for a description of these commands:\n\",STANDOUT)) ||    (cmd = print_lines("\	# $ & / = ? c C f F k K ^K J , m M number e r R ^R s S u U v w W Y ^ |\n\\n\(To return to the middle of the article after one of these commands, type ^L.)\n\",NOMARKING)) )	return cmd;#endif    return 0;}inthelp_art(){    int cmd;#ifdef ARTHELP    doshell(sh,filexp(ARTHELP));#else    page_init();    if ((cmd = print_lines("\Article Selection commands:\n\",STANDOUT)) ||    (cmd = print_lines("\n\n,SP	Find next unread article (follows discussion-tree in threaded groups).\n\",NOMARKING)) ||    (cmd = print_lines("\N	Go to next article.\n\^N	Scan forward for next unread article with same subject in date order.\n\p,P,^P	Same as n,N,^N, only going backwards.\n\_N,_P	Go to the next/previous article numerically.\n\-	Go to previously displayed article.\n\",NOMARKING)) ||    (cmd = print_lines("\<, >	Browse the previous/next selected thread.  If no threads are selected,\n\	all threads that had unread news upon entry to the group are considered\n\	selected for browsing.  Entering an empty group browses all threads.\n\[, ]	Go to article's parent/child (try left-/right-arrow also).\n\(, )	Go to article's previous/next sibling (try up-/down-arrow also).\n\{, }	Go to tree's root/leaf.\n\t	Display the entire article tree and all its subjects.\n\",NOMARKING)) ||    (cmd = print_lines("\number	Go to specified article.\n\range{,range}:command{:command}\n\	Apply one or more commands to one or more ranges of articles.\n\	Ranges are of the form: number | number-number.  You may use . for\n\	the current article, and $ for the last article.\n\",NOMARKING)) ||    (cmd = print_lines("\ 	Valid commands are: e, j, m, M, s, S, t, T, |, +, ++, -, and --.\n\:cmd	Perform a command on all the selected articles.\n\",NOMARKING)) ||    (cmd = print_lines("\/pattern/modifiers\n\	Scan forward for article containing pattern in the subject line.\n\	(Use ?pat? to scan backwards; append f to scan from lines, h to scan\n\	whole headers, a to scan entire articles, r to scan read articles, c\n\	to make case-sensitive.)\n\",NOMARKING)) ||    (cmd = print_lines("\/pattern/modifiers:command{:command}\n\	Apply one or more commands to the set of articles matching pattern.\n\	Use a K modifier to save entire command to the KILL file for this\n\	newsgroup.  Commands m and M, if first, imply an r modifier.\n\ 	Valid commands are the same as for the range command.\n\",NOMARKING)) ||    (cmd = print_lines("\f,F	Submit a followup article (F = include this article).\n\r,R	Reply through net mail (R = include this article).\n\e dir{|command}\n\	Extract to directory using /bin/sh, uudecode, unship, or command.\n\s ...	Save to file or pipe via sh.\n\S ...	Save via preferred shell.\n\w,W	Like s and S but save without the header.\n\| ...	Same as s|...\n\",NOMARKING)) ||    (cmd = print_lines("\C	Cancel this article, if yours.\n\^R,v	Restart article (v=verbose).\n\^X	Restart article, rot13 mode.\n\c	Catch up (mark all articles as read).\n\b	Back up one page.\n\",NOMARKING)) ||    (cmd = print_lines("\^L	Refresh the screen.  You can get back to the pager with this.\n\X	Refresh screen in rot13 mode.\n\^	Go to first unread article.  Disables subject search mode.\n\$	Go to end of newsgroup.  Disables subject search mode.\n\",NOMARKING)) ||    (cmd = print_lines("#       Print last article number.\n\&	Print current values of command-line switches.\n\&switch {switch}\n\	Set or unset more switches.\n\&&	Print current macro definitions.\n\&&def	Define a new macro.\n\j	Junk this article (mark it read).  Stays at end of article.\n\",NOMARKING)) ||    (cmd = print_lines("\m	Mark article as still unread.\n\M	Mark article as read but to-return on group exit or Y command.\n\Y	Yank back articles marked as to-return via the M command.\n\k	Kill current subject (mark articles as read).\n\,	Mark current article and its replies as read.\n\",NOMARKING)) ||    (cmd = print_lines("\J	Junk entire thread (mark all subjects as read in this thread).\n\A	Add current subject to memorized commands (selection or killing).\n\T	Add current (sub)thread to memorized commands (selection or killing).\n\K	Mark current subject as read, and save command in KILL file.\n\^K	Edit local KILL file (the one for this newsgroup).\n\",NOMARKING)) ||    (cmd = print_lines("\=	List subjects of unread articles.\n\+	Start the selector in whatever mode it was last in.\n\_a	Start the article selector.\n\_s	Start the subject selector.\n\_t	Start the thread selector.\n\",NOMARKING)) ||    (cmd = print_lines("\_T	Start the thread selector if threaded, else the subject selector.\n\U	Unread some news -- prompts for thread, subthread, all, or select.\n\u	Unsubscribe from this newsgroup.\n\q	Quit this newsgroup for now.\n\Q	Quit newsgroup, staying at current newsgroup.\n\",NOMARKING)) )	return cmd;#endif    return 0;}inthelp_ng(){    int cmd;#ifdef NGHELP    doshell(sh,filexp(NGHELP));#else    page_init();    if (cmd = print_lines("\Newsgroup Selection commands:\n\",STANDOUT) )	return cmd;    if (ng != nextrcline) {	if ((cmd = print_lines("\\n\y	Do this newsgroup now.\n\SP	Do this newsgroup, executing the default command listed in []'s.\n\.cmd	Do this newsgroup, executing cmd as first command.\n\+	Enter this newsgroup through the selector (like typing .+<CR>).\n\

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -