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

📄 lynx_users_guide.html

📁 一个可用于linux下的命令行音乐播放器
💻 HTML
📖 第 1 页 / 共 5 页
字号:
The process of moving within a hypertext web, selecting and displayinglinks is known as "navigation." With Lynx almost all navigation can beaccomplished with the arrow keys and the numeric keypad.<pre>                                       +-------+-------+-------+                                       | TOP   |  /|\  | Page  |              arrow keys               | of    |   |   | UP    |                                       | text 7|   |  8|      9|              +---------+              +-------+-------+-------+              | SELECT  |              |       |       |       |              | prev /|\|              | &lt;---  |       |  ---&gt; |              | link  | |              |      4|      5|      6|    +---------+---------+---------+    +-------+-------+-------+    |    BACK | SELECT  | DISPLAY |    | END   |   |   | Page  |    |&lt;-- prev | next  | | sel. --&gt;|    | of    |   |   | DOWN  |    |    doc. | link \|/| link    |    | text 1|  \|/ 2|      3|    +---------+---------+---------+    +-------+-------+-------+</pre>There are also a few other keyboard commands to aid in navigation.  TheControl and Function keys used for navigation within the current documentare described in <AHREF="#MiscKeys"><em>Scrolling and Other useful commands</em></A>.  Someadditional commands depend on the fact that Lynx keeps a list of eachlink you visited to reach the current document, called the <ahref="keystrokes/history_help.html">History Page</a>, and alist of all links visited during the current Lynx session, called the <ahref="keystrokes/visited_help.html">Visited Links Page</a>.  TheHISTORY keystroke command, normally mapped to <em>Backspace</em> or<em>Delete</em>, will show you the <em>History Page</em> of links leading toyour access of the current document.  Any of the previous documents shown inthe list may be revisited by selecting them from the history screen.  TheVLINKS keystroke command, normally mapped to uppercase '<em>V</em>', willshow the <em>Visited Links Page</em>, and you similarly can select links inthat list.  The MAIN_MENU keystroke command, normally mapped to '<em>m</em>'and '<em>M</em>', will take you back to the starting document unless youspecified the <em>-homepage=URL</em> option at the command line.  Also, theLIST and ADDRLIST keystroke commands, normally mapped to '<em>l</em>' and<em>A</em>' respectively, will create a compact lists of all the links inthe current document, and they can be selected via those lists.<p>The '<em>i</em>' key presents an index of documents.  The default indexoffered contains many useful links, but can be changed in <em>lynx.cfg</em>or on the command line using the <em>-index=URL</em> switch.<p>If you choose a link to a server with active access authorization, Lynxwill automatically prompt for a username and a password. If you give thecorrect information, you will then be served the requested information.Lynx will automatically send your username and password to the same serverif it is needed again. [<A HREF="#ToC-IntraDocNav">ToC</A>]<h2 ID="Disposing"><A NAME="Disposing"><em>Printing, Mailing, and Saving rendered files to disk.</em></A></h2>Rendered HTML documents, and plain text files, may be printed using the'<em>p</em>' command while viewing the document.  After pressing the'<em>p</em>' key a menu of <em>Print Options</em> will be displayed.  Themenu will vary according to several factors.  First, some sites set upspecial accounts to let users run Lynx to access local information systems.Typically these accounts require no passwords and do not require users toidentify themselves.  As a result such accounts are called "anonymous"accounts, and their users are considered "anonymous" users.  In mostconfigurations, all Lynx users (including anonymous users) are able tomail files to themselves and print the entire file to the screen.<p>Additional print options are available for users who are usingLynx from their own accounts (that is, so-called "non-anonymoususers").  In particular, the <em>Save to a local file</EM>option allows you to save the document into a file on your diskspace.  Additional print options may also beavailable as configured in the <A HREF="#lynx.cfg">lynx.cfg</A> file.<p>Some options, such as <em>Save to a local file</em>, involve promptingfor an output filename.  All output filename entries are saved in acircular buffer, and any previous entries can be retrieved for re-use bypressing the <em>up-arrow</em> or <em>down-arrow</em> keys at the prompt.<p>Note that if you want exact copies of text files without any expansionsof TAB characters to spaces you should use the<a href="#RemoteSource">Download</a> options.[<A HREF="#ToC-Disposing">ToC</A>]<h2 ID="LocalSource"><A NAME="LocalSource"><em>Viewing the HTML document source and editing documents</em></A></h2>When viewing HTML documents it is possible to retrieve and display theunrendered (i.e., the original HTML) source of the document by pressingthe '<em>\</em>' (backslash) key.  Lynx usually caches only the renderingof the document and doesn't keep the source (unless it is configured to doso in the <A HREF="#lynx.cfg">lynx.cfg</A> file), so to display the sourceunrendered, Lynx must reload it from the server or disk.When viewing unrendered documents you may print them as any normal document.<p>Selecting the <em>Print to a local file</em> option from the Print Menu,makes it possible to save the source of the document to disk so that youmay have a local copy of the document source, but it is better to <ahref="#RemoteSource">Download</a> the source.<p>NOTE: When saving an HTML document it is important to name thedocument with a <em>.html</em> or <em>.htm</em> extension, if youwant to read it with Lynx again later.<p ID="FileEdit">Lynx can allow users to edit documents that reside on thelocal system.  To enable editing, documents must be referenced using a"file:" URL or by specifying a plain filename on the command line asin the following two examples:<dl><dt>Command    <dd><code>lynx file://localhost/FULL/PATH/FILENAME</code>    <dd><code>lynx path/filename.html</code></dl>In addition, the user must also specify an editor in the<em>Options Menu</em> so that Lynx knows which editor to use.  If thefile is specified correctly and an editor is defined, then you may editdocuments by using the '<em>e</em>' command.  When the '<em>e</em>'command is entered your specified editor is spawned to edit the file.After changes are completed, exit your editor and you will return to Lynx.Lynx will reload and render the file so that changes can be immediatelyexamined. [<A HREF="#ToC-LocalSource">ToC</A>]<h2 ID="RemoteSource"><A NAME="RemoteSource"><em>Downloading and Saving source files.</em></A></h2>If the DOWNLOAD keystroke command ('<em>d</em>' or <em>D</em>) isused when positioned on a link for an HTML, plain text, or binaryfile, Lynx will transfer the file, without rendering, into atemporary location and present the user with a list of options,just as it does when a link for a binary file of a type for whichno viewer has been mapped is activated.<P>There is a default <em>Download option</em> of <em>Save todisk</em>.  This is disabled if Lynx is running in anonymousmode.  Any number of download methods such as kermit and zmodemmay be defined in addition to this default in the<em>lynx.cfg</em> file.  Using the <em>Save to disk</em> optionunder the PRINT command after viewing the source of an HTML withthe VIEW SOURCE (<em>\</em>) command will result in a file whichdiffers from the original source in various ways such as tabcharacters expanded to spaces.  Lynx formats the source presentationin this mode.  On the other hand, if the DOWNLOAD command is used,the only change will be that Lynx optionally puts<blockquote>&lt;!--X-URL: http://www.site.foo/path/to/file.html --&gt;<BR>&lt;BASE href="http://www.site.foo/path/to/file.html"&gt;</blockquote>at the start of the file so that relative URLs in the documentwill still work.Even this modification can be prevented by settingPREPEND_BASE_TO_SOURCE:FALSE in lynx.cfg.<p>Some options, such as <em>Save to disk</em>, involve prompting for anoutput filename.  All output filename entries are saved in a circular buffer,and any previous entries can be retrieved for re-use by pressing the<em>up-arrow</em> or <em>down-arrow</em> keys at the prompt.[<A HREF="#ToC-RemoteSource">ToC</A>]<h2 ID="ReDo"><A NAME="ReDo"><em>Reloading files and refreshing the display</em></A></h2>The RELOAD (<em>Control-R</em>) command will reload and re-render the filethat you are currently viewing.  The REFRESH (<em>Control-L</em> or<em>Control-W</em>) command will refresh or wipe the screen to remove orcorrect any errors that may be caused by operating system or other messages.<p>The NOCACHE ('<em>x</em>' or '<em>X</em>') command can be used in lieuof ACTIVATE (<em>Return</em> or <em>right-arrow</em>) to request an uncachedcopy and new rendition for the current link, or resubmission of a FORM, if acache from a previous request or submission exits.  The request or submissionwill include <em>Pragma: no-cache</em> and <em>Cache-Control: no-cache</em>in its headers.  Note that FORMs with POST content will be resubmittedregardless of whether the NOCACHE or ACTIVATE command is used (see <AHREF="#Forms"><em>Lynx and HTML Forms</em></A>).[<A HREF="#ToC-ReDo">ToC</A>]<h2 ID="Search"><A NAME="Search"><em>Lynx searching commands</em></A></h2>Two commands activate searching in Lynx: '<em>/</em>' and '<em>s</em>'.<p>While viewing a normal document use the '<em>/</em>' commandto find a word or phrase within the current document.  The searchtype will depend on the search option setting in the <ahref="#InteractiveOptions">Options Menu</a>.  The search optionsare case sensitive and case insensitive.  These searches areentirely local to Lynx.<p>Some documents are designated <em>index documents</em> by virtue of anISINDEX element in their HEAD section.  These documents can be used toretrieve additional information based on searches using words or phrasessubmitted to an index server.  The Lynx statusline will indicate that youare viewing such a document, and if so, the '<em>s</em>' key will invoke astatusline prompt to enter a query string.  The prompt can be specified viaa PROMPT attribute in the ISINDEX element.  Otherwise, Lynx will use aninternally configured prompt.  The address for submitting the search can bespecified via an HREF or ACTION attribute.  Otherwise, Lynx will use thecurrent document's URL and append your query string as a <em>?searchpart</em>(see <a href="lynx_url_support.html">Supported URLs</a>).<p>All search words or strings which you have entered during a Lynx sessionare saved in a circular buffer, and can be retrieved for re-use by pressingthe <em>up-arrow</em> or <em>down-arrow</em> keys at the prompt for a searchword or string.  Also, you can use the '<em>n</em>'ext command to repeat asearch with the last-entered search word or phrase, starting from the currentposition in the document.  The word or phrase matches will be highlightedthroughout the document, but such highlighting will not persist for newdocuments, or if the current document is reloaded.  The search cycles to thetop of the document if the word or phrase is not located below your currentposition.<p>Although <a href="#Forms">HTML Forms</a> have largely replaced indexdocuments for searches via http servers, they are still useful for performingsearches directly via WAIS or Gopher servers in conjunction with the internalgateways for such servers.  For example, an HTML index document can act as a<em>cover page</em> describing a WAIS database and how to formulate querystrings for searching it, and include an element such as:<BR><pre>      <em>&lt;ISINDEX PROMPT="Enter WAIS query:"               HREF="wais://net.bio.net/biologists-addresses"&gt;</em></pre>for submitting a search of the Biologist's Addresses database directlyto the net.bio.net WAIS server. [<A HREF="#ToC-Search">ToC</A>]<h2 ID="InteractiveOptions"><A NAME="InteractiveOptions"><em>Lynx Options Menu</em></A></h2>The Lynx <em>Options Menu</em> may be accessed by pressing the '<em>o</em>'key. It allows you to change options at runtime, if you need to.Most changes are read from &amp; saved to your .lynxrc file; those which are notare marked (!) in the form-based menu (as below). Many other optionsare stored in the <A HREF="#lynx.cfg">lynx.cfg</A> file.<p>Lynx supports two styles of Options Menu, key-based &amp; form-based.The form-based menu shown below is an HTML file generated at runtime,in which the user fills in choices as in any ordinary HTML form.<pre>                    Options Menu (Lynx Version 2.8.5dev.15)      Accept Changes - Reset Changes Left Arrow cancels changes <AHREF="keystrokes/option_help.html">HELP!</A>                         Save options to disk: [_]                (options marked with (!) will not be saved)  General Preferences  User mode                        : [Advanced....]  Editor                           : __________________________________________  Type of Search                   : [Case insensitive]  Security and Privacy  Cookies (!)                      : [ask user..]  Invalid-Cookie Prompting (!)     : [prompt normally___]  SSL Prompting (!)                : [prompt normally___]  Keyboard Input

⌨️ 快捷键说明

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