📄 trn.1
字号:
.IR more (1)program does this.)This feature works only if you have the requisite termcapcapabilities.The switch has no effect unless the.B \-eswitch is set..TP 5.B \-m=<mode>enables the marking of the last line of the previous pageprinted, to help the user see where to continue reading.This is most helpful when less than a full page is going to be displayed.It may also be used in conjunction with the.B \-eswitch, in which case the page is erased, and the first line (which isthe last line of the previous page) is highlighted.If.B \-m=sis specified, the standout mode will be used, but if.B \-m=uis specified, underlining will be used.If neither.B =sor.B =uis specified, standout is the default.Use.B +mto disable highlighting..TP 5.B \-Mforces mailbox format in creating new save files.Ordinarily you are asked which format you want..TP 5.B \-Nforces normal (non-mailbox) format in creating new save files.Ordinarily you are asked which format you want..TP 5.B \-owill act like old versions of trn and not junk cross-referenced articleswhen using thread commands to junk articles in the current group (such asthe selector's \*(L'X\*(R' command)..TP 5.B \-O<mode>{<order>}specifies the selector's mode and (optionally) the sort order.The modes are \*(L'a\*(R'rticle, \*(L's\*(R'ubject, or \*(L't\*(R'hread.The orders are \*(L'd\*(R'ate, \*(L's\*(R'ubject, \*(L'a\*(R'uthor,article \*(L'c\*(R'ount per group, or subject-date \*(L'g\*(R'roups.The order can be capitalized to reverse the indicated order.For example, to choose the article selector in subject order specify\*(L"-Oas\*(R"..TP 5.B \-ptells trn to auto-select your postings and their replies as it encounters themin the various groups you read..TP 5.B \-qbypasses the automatic check for new newsgroups when starting .IR trn ..TP 5.B \-rcauses.I trnto restart in the last newsgroup read during a previous session with.IR trn .It is equivalent to starting up normally and then getting to the newsgroupwith a g command..TP 5.B \-swith no argument suppresses the initial listing of newsgroups with unreadnews, whether.B \-cis specified or not.Thus.B \-cand.B \-scan be used together to test \*(L"silently\*(R" the status of news fromwithin your.I .loginfile.If.B \-sis followed by a number, the initial listing is suppressed after that manylines have been listed.Presuming that you have your.I .newsrcsorted into order of interest,.B \-s5will tell you the 5 most interesting newsgroups that have unread news.This is also a nice feature to use in your.I .loginfile, since it not only tells you whether there is unread news, but also howimportant the unread news is, without having to wade through the entirelist of unread newsgroups.If no .B \-sswitch is given .B \-s5is assumed, so just putting \*(L"rn \-c\*(R"into your\&.login file is fine..TP 5.B \-S<number>causes.I trnto enter subject search mode (^N) automatically whenever an unthreadednewsgroup isstarted up with <number> unread articles or more.Additionally, it causes any \*(L'n\*(R' typed while in subject search modeto be interpreted as \*(L'^N\*(R' instead.(To get back out of subject search mode, the best command is probably\&\*(L'^\*(R'.)If <number> is omitted, 3 is assumed..TP 5.B \-tputs.I trninto terse mode.This is more cryptic but useful for low baud rates.(Note that your system administrator may have compiled.I trnwith either verbose or terse messages only to save memory.)You may wish to use the baud-rate switch modifier below to enable terse modeonly at lower baud rates..TP 5.B \-Tallows you to type ahead of rn.Ordinarily rn will eat typeahead to prevent your autorepeating space bar fromdoing a very frustrating thing when you accidentally hold it down.If you don't have a repeating space bar, or you are working at low baudrate, you can set this switch to prevent this behavior.You may wish to use the baud-rate switch modifier below to disable typeaheadonly at lower baud rates..TP 5.B \-usets the unbroken-subject-line mode in the selector, which simply truncatessubjects that are too long instead of dumping the middle portion prior tothe last two words of the subject..TP 5.B \-vsets verification mode for commands.When set, the command being executed is displayed to give some feedback thatthe key has actually been typed.Useful when the system is heavily loaded and you give a command that takesa while to start up..TP 5.B \-x{<number>}{<list>}Enable the extended (threaded) features of.I trnbeyond the.I rncompatibility mode(this may be the default on your system, use +x if you yearn for the goodol' days).The <number> is the maximum number of article-tree lines (from 0 to 11)you want displayed in your header.Use the <list> to choose which thread selector styles you like(\*(L's\*(R'hort, \*(L'm\*(R'edium, or \*(L'l\*(R'ong), and in what orderthey are selected with the \*(L'L\*(R' command.For example, use.B \-xmsto start with the medium display mode and only switch between it andthe short mode.You can omit either or both of the parameters, in which case a default of.B \-x6lmsis assumed..TP 5.B \-X{<number>}{<commands>}If you like using the selector, you'll probably want to use thisoption to make the selector command (+) the default when a newsgroupis started up with at least <number> unread articles.(Your installer may have chosen to make -X1 the default on your system.)It is also used to select which commands you want to be the defaults whileusing the thread selector.For example,.B \-X2XDwill make the thread selector the default command for entering a newsgroupwith at least 2 unread articles, and set the default command for the LASTpage of the thread selector to be the.B Xcommand and the default command for all other pages to be the.B Dcommand.Either or both parameters can be omitted, as well as the second defaultcommand (e.\|g..B \-XXwould change the default newsgroup entry to use the selector and the defaultcommand for the last page of the selector to be \*(L'X\*(R').The default is.B \-X1Z>if just.B \-Xis specified.To set the default selector commands without having \*(L'+\*(R' be thedefault entry into a newsgroup, specify a high number, like 9999..TP 5.B \-/sets SAVEDIR to \*(L"%p/%c\*(R" and SAVENAME to \*(L"%a\*(R", which meansthat by default articles are saved in a subdirectory of your private newsdirectory corresponding to the name of the the current newsgroup, with thefilename being the article number..B +/sets SAVEDIR to \*(L"%p\*(R" and SAVENAME to \*(L"%^C\*(R", which bydefault saves articles directly to your private news directory, with thefilename being the name of the current newsgroup, first letter capitalized.(Either.B +/or.B \-/may be default on your system, depending on the feelings of your newsadministrator when he, she or it installed.IR trn .)You may, of course, explicitly set SAVEDIR and SAVENAME to othervalues \*(-- see discussion in the environment section..PPAny switch may be selectively applied according to the current baud-rate.Simply prefix the switch with +speed to apply the switch at that speed orgreater, and \%\-speed to apply the switch at that speed or less.Examples: \%\-1200\-hposted suppresses the Posted line at 1200 baud or less;\%+9600\-m enables marking at 9600 baud or more.You can apply the modifier recursively to itself also: \%+300\-1200\-t setsterse mode from 300 to 1200 baud..PPSimilarly, switches may be selected based on terminal type:.Sp \-=vt100+T set +T on vt100.br \-=tvi920\-ETERM=mytvi get a special termcap entry.br \-=tvi920\-ERNMACRO=%./.rnmac.tvi.br set up special key-mappings.br +=paper\-v set verify mode if not hardcopy.PPSome switch arguments, such as environment variable values, may requirespaces in them.Such spaces should be quoted via ", ', or \e in the conventional fashion,even when passed via TRNINIT or the & command..Sh "Regular Expressions"The patterns used in article searching are regular expressions such asthose used by.IR ed (1).In addition, \ew matches an alphanumeric character and \eW a non-alphanumeric.Word boundaries may be matched by \eb, and non-boundaries by \eB.The bracketing construct \e(\ ...\ \e) may also be used, and \edigit matchesthe digit'th substring, where digit can range from 1 to 9.\e0 matches whatever the last bracket match matched.Up to 10 alternatives may given in a pattern, separated by \e|, with thecaveat that \e(\ ...\ \e|\ ...\ \e) is illegal..Sh "Interpretation and Interpolation"Many of the strings that.I trnhandles are subject to interpretations of several types.Under filename expansion, an initial \*(L"~/\*(R" is translated to the nameof your home directory, and \*(L"~name\*(R" is translated to the logindirectory for the user specified.Filename expansion will also expand an initial environment variable, andalso does the backslash, caret and percent expansion mentioned below..PPAll interpreted strings go through backslash, caret and percentinterpretation.The backslash escapes are the normal ones (such as \en, \et, \e033, etc.).The caret escapes indicate control codes (such as ^i, ^l, etc.).If you wish to pass through a backslash or a caret it must be escaped witha backslash.The special percent escapes are similar to printf percent escapes.These cause the substitution of various run-time values into the string.The following are currently recognized:.Ip %a 8Current article number..Ip %A 8Full name of current article (%P/%c/%a)..Ip %b 8Destination of last save command, often a mailbox..Ip %B 8The byte offset to the beginning of the part of the article to be saved,set by the save command.The \*(L's\*(R' and \*(L'S\*(R' commands set it to 0, and the \*(L'w\*(R'and \*(L'W\*(R' commands set it to the byte offset of the body of the article..Ip %c 8Current newsgroup, directory form..Ip %C 8Current newsgroup, dot form..Ip %d 8Full name of newsgroup directory (%P/%c)..Ip %D 8\*(L"Distribution:\*(R" line from the current article..Ip %e 8The last command executed to extract data from an article..Ip %E 8The last directory where an extracted file went..Ip %f 8\*(L"From:\*(R" line from the current article, or the \*(L"Reply-To:\*(R"line if there is one.This differs from %t in that comments (such as the full name) are notstripped out with %f..Ip %F 8\*(L"Newsgroups:\*(R" line for a new article, constructed from\*(L"Newsgroups:\*(R" and \*(L"Followup-To:\*(R" lines of current article..Ip %h 8Name of the header file to pass to the mail or news poster,containing all the information that the poster program needs in theform of a message header.It may also contain a copy of the current article.The format of the header file is controlled by the MAILHEADER and NEWSHEADERenvironment variables..Ip %H 8Host name (your machine's name)..Ip %i 8\*(L"Message-I.D.:\*(R" line from the current article, with <> guaranteed..Ip %I 8The reference indication mark (see the.B \-Fswitch.).Ip %l 8The news administrator's login name, if any..Ip %L 8Login name (yours)..Ip %m 8The current mode of.I trn,for use in conditional macros..Sp.nf i Initializing. n Newsgroup-selection level. f end (Finis) of newsgroup-selection level. t the Thread/subject/article selector. a Article level (What next?). e End of the article level. p Pager level (MORE prompt). u Set-unread prompt. d selector moDe prompt. o selector Order prompt. m Memorize thread command prompt. r memoRize subject command prompt. k processing memorized (KILL file) commands. A Add this newsgroup? B aBandon confirmation. C Catchup confirmation. D Delete bogus newsgroups? F Is follow-up a new topic? M Use mailbox format? R Resubscribe to this newsgroup?.fi.SpNote
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -