LYNX(1)
๐ธ LYNX(1) โ the manual page, bestie edition ๐ธ
ok so you opened the manual for lynx (yes, section 1, we love a classic) and you're about to get the whole thing, no skips, no "lol tl;dr". grab a snack. ๐
โจ NAME โจ
lynx โ a general purpose distributed information browser for the World Wide Web ๐
like... it's a browser. it browses. it's for the whole entire web. iconic behavior.
โจ SYNOPSIS โจ
lynx [options] [optional paths or URLs]
lynx [options] [path or URL] -get_data
data
--
lynx [options] [path or URL] -post_data
data
--
and hmm, if you want the actual, current, complete list of options, run lynx -help. that's the cheat code, no cap. โจ
โจ DESCRIPTION โจ
Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable, character-cell display devices โ like, say, vt100 terminals, vt100 emulators running on Windows or any POSIX platform, or literally any other "curses-oriented" display. ๐ It will display hypertext markup language (HTML) documents containing links to files residing on the local system, and files residing on remote systems running Gopher, HTTP, FTP, WAIS, and NNTP servers. look at her go, she does all of that.
Lynx has been ported to many systems, including all variants of Unix, Windows (since Windows 95), DOS DJGPP and OS/2, as well as VMS and OS/390. she's been everywhere. main character energy fr. ๐
Lynx can be used to access information on the World Wide Web, or to build information systems intended primarily for local access. for example, Lynx has been used to build several Campus Wide Information Systems (CWIS). plus, Lynx can be used to build systems isolated within a single LAN. versatile queen. ๐
โจ OPTIONS โจ
At start up, Lynx will load any local file or remote URL specified at the command line. need help with URLs? press ? or H while running Lynx, then follow the link titled, "Help on URLs." easy. ๐ฆ
If more than one local file or remote URL is listed on the command line, Lynx will open only the last one interactively. ๐ญ all of the names (local files and remote URLs) are added to the G)oto history though, so nothing is truly lost.
Lynx uses only long option names. option names can begin with double dash -- as well, and underscores and dashes can be intermixed in option names (in the reference below, options are shown with one dash - before them, and with underscores _). mix and match, she doesn't care. ๐
Lynx provides many command-line options. some options require a value (string, number or keyword) โ those are noted in the reference below. the other options set boolean values in the program. there are three types of boolean options: set, unset and toggle. if no option value is given, these have the obvious meaning: set (to true), unset (to false), or toggle (between true/false). and for any of these, an explicit value can be given in different forms to allow for operating system constraints, e.g.,
-center:off
-center=off
-center-
Lynx recognizes 1, +, on and true for true values, and 0, -, off and false for false values. other option-values are ignored. ๐
The default boolean, number and string option values that are compiled into Lynx are displayed in the help-message provided by lynx -help. some of those may differ according to how Lynx was built; see the help message itself for these values. the -help option is processed in the third pass of options-processing, so any option which sets a value, as well as runtime configuration values, are reflected in the help-message. sneaky but valid. โญ
ok now the actual options. there are a LOT. hydrate. ๐
-โ if the argument is only-, then Lynx expects to receive the arguments from the standard input. this is to allow for the potentially very long command line that can be associated with the-get_dataor-post_dataarguments (see below). it can also be used to avoid having sensitive information in the invoking command line (which would be visible to other processes on most systems), especially when the-author-pauthoptions are used. safety first, bestie. ๐ซถ-accept_all_cookiesโ accept all cookies without prompting if Set-Cookie handling is on. the default isoff.-anonymousโ apply restrictions for anonymous account, see also-restrictions.-assume_charset=MIMEnameโ charset for documents that do not specify it.-assume_local_charset=MIMEnameโ charset assumed for local files, i.e., files which Lynx creates such as internal pages for the options menu.-assume_unrec_charset=MIMEnameโ use this instead of unrecognized charsets.-auth=ID:PASSWDโ set authorization ID and password for protected documents at startup. ๐จ be sure to protect any script files which use this switch. seriously, lock those down.-baseโ prepend a request URL comment and BASE tag to text/html outputs for-sourcedumps.-bibhost=URLโ specify a local bibp server (defaulthttp://bibhost/).-blinkโ forces high intensity background colors for color mode, if available and supported by the terminal. this applies to the slang library (for a few terminal emulators), or to OS/2 EMX with ncurses. โจ-bookโ use the bookmark page as the startfile. the default or command line startfile is still set for the Main screen command, and will be used if the bookmark page is unavailable or blank. the default isoff.-buried_newsโ toggles scanning of news articles for buried references, and converts them to news links. โ ๏ธ not recommended because email addresses enclosed in angle brackets will be converted to false news links, and uuencoded messages can be trashed. the default ison. like... it's on by default but she's telling you not to. ๐ญ-cache=NUMBERโ set theNUMBERof documents cached in memory. the default is10.-caseโ enable case-sensitive string searching. the default isoff.-centerโ toggles center alignment in HTML TABLE. normally table cells are centered on the table grid. set this optiononto disable centering. the default isoff. (yes, "set it on to turn it off", she said what she said ๐)-cfg=FILENAMEโ specifies a Lynx configuration file other than the defaultlynx.cfg.-childโ exit on left-arrow in startfile, and disable save to disk and associated print/mail options. the default isoff.-child_relaxedโ exit on left-arrow in startfile, but allow save to disk and associated print/mail options. the default isoff.-cmd_log=FILENAMEโ write keystroke commands and related information to the specified file.-cmd_script=FILENAMEโ read keystroke commands from the specified file. you can use the data written using the-cmd_logoption. Lynx will ignore other information which the command-logging may have written to the logfile. each line of the command script contains either a comment beginning with#, or a keyword:exitโ causes the script to stop, and forces Lynx to exit immediately.keyโ the character value, in printable form. cursor and other special keys are given as names, e.g.,Down Arrow. printable 7-bit ASCII codes are given as-is, and hexadecimal values represent other 8-bit codes.setโ followed by aname=valueallows one to override values set in thelynx.cfgor.lynxrcfiles. Lynx tries the cfg-file setting first.
-collapse_br_tagsโ toggles collapsing of BR tags. the default isoff.-colorโ forces color mode on, if available. default color control sequences which work for many terminal types are assumed if the terminal capability description does not specify how to handle color. Lynx accepts this flag only when built with the slang library. it is equivalent to setting theCOLORTERMenvironment variable. ๐จ
If color support is provided by a color-capable curses library such as ncurses, Lynx relies completely on the terminal description to determine whether color mode is possible, and this flag is not needed and thus unavailable.
A saved show_color=always setting found in a .lynxrc file at startup has the same effect. a saved show_color=never found in .lynxrc on startup is overridden by this flag. ๐
-connect_timeout=Nโ Sets the connection timeout, whereNis given in seconds. the default is300.-convert_to=PARAMโ convert input, setting output format in MIME type notation (e.g.,www/present,www/source), and optionally setting the current character set (i.e., adding;followed bycharset=VALUE).-cookie_file=FILENAMEโ specifies a file to use to read cookies. if none is specified, the default value is~/.lynx_cookiesfor most systems, but~/cookiesfor MS-DOS. ๐ช-cookie_save_file=FILENAMEโ specifies a file to use to store cookies. if none is specified, the value given by-cookie_fileis used.-cookiesโ toggles handling of Set-Cookie headers. the default ison.-coreโ toggles forced core dumps on fatal errors. turn this option off to ask Lynx to force a core dump if a fatal error occurs. the default isoff.-crawlโ with-traversal, output each page to a file. with-dump, format output as with-traversal, but to the standard output.-curses_padsโ toggles the use of curses "pad" feature which supports left/right scrolling of the display. the default ison.
The feature is normally available for curses configurations, but inactive. to activate it, use the | character or the LINEWRAP_TOGGLE command. toggling this option makes the feature altogether unavailable.
-debug_partialโ separate incremental display stages withMessageSecsdelay. the default isoff.-default_colorsโ toggles the default-colors feature which is normally set in thelynx.cfgfile. the default ison.-delayโ addDebugSecsdelay after each progress-message. the default is0.-display=DISPLAYโ set the$DISPLAYvariable for X exec-ed programs.-display_charset=MIMEnameโ set the charset for the terminal output.-dont_wrap_preโ inhibit wrapping of text when-dump'ing and-crawl'ing, mark wrapped lines of<pre>in interactive session. the default isoff.-dumpโ dumps the formatted output of the default document or those specified on the command line to standard output. unlike interactive mode, all documents are processed. ๐ this can be used in the following way:
lynx -dump https://lynx.invisible-island.net/
Files specified on the command line are formatted as HTML if their names end with one of the standard web suffixes such as .htm or .html. use the -force_html option to format files whose names do not follow this convention. ๐ธ
ok that's the end of part 1!! don't go anywhere, there's so much more โ the options keep going and going and she is not done. ๐
-editor=EDITORโ okay so this enables external editing, using theEDITORyou specify. Thinkvi,ed,emacs, etc. ๐-emacskeysโ enables emacs-like key movement. Default isoff. โจ-enable_scrollbackโ toggles compatibility with communication programs' scrollback keys (may be incompatible with some curses packages, bestie ๐ฌ). Default isoff.-error_file=FILEโ defines a file where Lynx reports HTTP access codes. ๐-execโ enable local program execution (normally not configured). ๐-fileversionsโ include all versions of files in local VMS directory listings. ๐๏ธ-find_leaksโ toggle memory leak-checking. Normally this isn't compiled into your executable, but when it is, it can be disabled for a session. ๐-fail_on_alertโ exit with an error code if any alert message is written. Default isoff. ๐จ-force_empty_hrefless_aโ force HREF-less โAโ elements to be empty (close them as soon as they're seen). Default isoff. ๐ซถ-force_htmlโ forces the first document to be interpreted as HTML. Default isoff. ๐ง
This is highkey most useful when you're processing files specified on the command line that have an unrecognized suffix (or the suffix is tied to a non-HTML type, like .txt for plain text files).
Lynx recognizes these file suffixes as HTML: .ht3, .htm, .html3, .html, .htmlx, .php3, .php, .phtml, .sht, and .shtml. ๐
-force_secureโ toggles forcing of the secure flag for SSL cookies. Default isoff. ๐-forms_optionsโ toggles whether the Options Menu is key-based or form-based. Default ison. ๐-fromโ toggles transmissions of From headers. Default ison. ๐จ-ftpโ disable ftp access. Default isoff. ๐ซ-get_dataโ properly formatted data for a get form are read from the standard input and passed to the form. Input is terminated by a line that starts with---. ๐
Lynx issues an HTTP GET, sending the form to the path or URL given on the command-line and prints the response of the server. If no path or URL is given, Lynx sends the form to the start-page. ๐ธ
-headโ send a HEAD request for the mime headers. Default isoff. ๐ง-helpโ print the Lynx command syntax usage message, and exit. ๐-hiddenlinks=[option]โ control the display of hidden links. ๐mergeโ hidden links show up as bracketed numbers and are numbered together with other links in the sequence of their occurrence in the document.listonlyโ hidden links are shown only onL)istscreens and listings generated by-dumpor from theP)rintmenu, but appear separately at the end of those lists. This is the default behavior.ignoreโ hidden links do not appear even in listings.
-historicalโ toggles use of>or-->as a terminator for comments. Default isoff. ๐-homepage=URLโ set homepage separate from start page. ๐-html5_charsetโ toggles use of HTML5 charset replacements. HTML5 pretends that CP1252 is the same as ISO-8859-1. Default isoff. ๐-image_linksโ toggles inclusion of links for all images. Default isoff. ๐ผ๏ธ-index=URLโ set the default index file to the specified URL. ๐-ismapโ toggles inclusion of ISMAP links when client-side MAPs are present. Default isoff. ๐บ๏ธ-justifyโ do justification of text. Default isoff. ๐-link=NUMBERโ starting count forlnk#.datfiles produced by-crawl. Default is0. ๐ข-list_decodedโ for-dump, show URL-encoded links decoded. Default ison. โจ
Lynx accepts URL-encoded links on the command line, and decodes them for internal use. When printing URLs, it shows them in encoded form by default. Use this option to disable that printed encoding. ๐ซถ
-list_inlineโ for-dump, show the links inline with the text. Default isoff. ๐-listonlyโ for-dump, show only the list of links. Default isoff. ๐-localhostโ disable URLs that point to remote hosts. Default isoff. ๐-locexecโ enable local program execution from local files only (if Lynx was compiled with local execution enabled). Default isoff. ๐ป-lss=FILENAMEโ specify filename containing color-style information. Default islynx.lss. If you give an empty filename, Lynx uses a built-in monochrome scheme which imitates the non-color-style configuration. ๐จ-mime_headerโ prints the MIME header of a fetched document along with its source. ๐-minimalโ toggles minimal versus valid comment parsing. Default ison. ๐ง-nested_tablesโ toggles nested-tables logic (for debugging). Default ison. ๐ช-newschunksize=NUMBERโ number of articles in chunked news listings. ๐ฐ-newsmaxchunk=NUMBERโ maximum news articles in listings before chunking. ๐ฐ-noboldโ disable bold video-attribute. ๐ซ-nobrowseโ disable directory browsing. ๐ซ-noccโ disableCc:prompts for self copies of mailings. Note that this does not disable any CCs which are incorporated within amailtoURL or formACTION. ๐ง-nocolorโ force color mode off, overriding terminal capabilities and any-colorflags,COLORTERMvariable, and saved.lynxrcsettings. ๐๐ซ-noexecโ disable local program execution. Default ison. ๐ซ-nofilerefererโ disable transmissions of Referer headers for file URLs. Default ison. ๐-nolistโ disable the link list feature in dumps. Default isoff. ๐-nologโ disable mailing of error messages to document owners. Default ison. ๐ช-nomarginsโ disable left/right margins in the default style sheet. Default isoff. ๐-nomoreโ disable-more-string in statusline messages. ๐ฌ-nonrestarting_sigwinchโ This flag is not available on all systems; Lynx needs to be compiled withHAVE_SIGACTIONdefined. If available, this flag may cause Lynx to react more immediately to window changes when run within an xterm. Default isoff. ๐ช-nonumbersโ disable link- and field-numbering. This overrides-number_fieldsand-number_links. Default isoff. ๐ข๐ซ-nopauseโ disable forced pauses for statusline messages. Default isoff. โธ๏ธ-noprintโ disable most print functions. Default isoff. ๐จ๏ธ๐ซ-noredirโ prevents automatic redirection and prints a message with a link to the new URL. Default isoff. ๐-norefererโ disable transmissions of Referer headers. Default isoff. ๐-noreverseโ disable reverse video-attribute. ๐-nosocksโ disable SOCKS proxy usage by a SOCKSified Lynx. ๐งฆ-nostatusโ disable the retrieval status messages. Default isoff. ๐-notitleโ disable title and blank line from top of page. Default isoff. ๐-nounderlineโ disable underline video-attribute. ๐ซ-nozap=DURATIONโ disables checks forzkey initially ifDURATIONisinitially, or completely otherwise. โก-number_fieldsโ force numbering of links as well as form input fields. Default isoff. ๐ข-number_linksโ force numbering of links. Default isoff. ๐ข-partialโ toggles display partial pages while loading. Default ison. ๐-partial_thres=NUMBERโ number of lines to render before repainting display with partial-display logic. ๐-passive_ftpโ toggles passive ftp connections. Default ison. ๐ก-pauth=ID:PASSWDโ set authorization ID and password for a protected proxy server at startup. Be sure to protect any script files which use this switch. ๐-popupโ toggles handling of single-choice SELECT options via popup windows or as lists of radio buttons. Default isoff. ๐ช-post_dataโ properly formatted data for a post form are read in from the standard input and passed to the form. Input is terminated by a line that starts with---. ๐จ
Lynx issues an HTTP POST, sending the form to the path or URL given on the command-line and prints the response of the server. If no path or URL is given, Lynx sends the form to the start-page. ๐ธ
-preparsedโ show HTML source preparsed and reformatted when used with-sourceor in source view to visualize how lynx behaves with invalid HTML. Default isoff. ๐ง-prettysrcโ show HTML source view with lexical elements and tags in color. Default isoff. ๐จ-printโ enable print functions. (default) This is the opposite of-noprint. Default ison. ๐จ๏ธ-pseudo_inlinesโ toggles pseudo-ALTs for inline images with no ALT string. Default ison. ๐ผ๏ธ-rawโ toggles default setting of 8-bit character translations or CJK mode for the startup character set. Default isoff. ๐ค-realmโ restricts access to URLs in the starting realm. Default isoff. ๐ก๏ธ-read_timeout=Nโ Sets the read-timeout, whereNis given in seconds. Default is18000. โฑ๏ธ-reloadโ flushes the cache on a proxy server (only the first document given on the command-line is affected). Default isoff. ๐-restrictions=[option][,option][,option]...โ allows a list of services to be disabled selectively. Dashes and underscores in option names can be intermixed. The following list is printed if no options are specified. ๐งallโ restricts all options listed below.bookmarkโ disallow changing the location of the bookmark file.bookmark_execโ disallow execution links via the bookmark file.
change_exec_permsโ nope, you do not get to flip the eXecute permission on files when local file management is onโฆ though directories? directories are still fine, directories can stay slaying ๐defaultโ literally the same as the command line option-anonymous. It kills the default services for anonymous users. Everything's set to restricted except for these little icons:
inside_telnet, outside_telnet, inside_ftp, outside_ftp, inside_rlogin, outside_rlogin, inside_news, outside_news, telnet_port, jump, mail, print, exec, and goto.
And bestie, the settings for those, plus the extra goto restrictions for specific URL schemes that also get applied, all come from definitions inside userdefs.h. periodt.
dired_supportโ no local file management for you, sorry babes ๐ซdisk_saveโ saving to disk in the download and print menus? not allowed. it's giving read-only energy.dotfilesโ no touching, no making hidden (dot) files. the dotfiles stay mysterious โจdownloadโ blocks some downloaders in the download menu (heads up: this does not imply thedisk_saverestriction).editorโ external editing is off the table, sobs ๐ญexecโ execution scripts are disabled.exec_frozenโ the user cannot change the local execution option. frozen literally means frozen ๐งexec_frozen's cousinexternalsโ if support for passing URLs to external applications (that's theEXTERNcommand) is compiled in, then someโEXTERNALโconfiguration lines get disallowed.file_urlโ no using G)oto, served links or bookmarks forfile:URLs. nope nope nope.gotoโ theโgโ(goto) command is disabled, gone, bye ๐ฆinside_ftpโ disallows ftps for people coming from inside your domain (utmp required for selectivity โ iykyk).inside_newsโ disallows USENET news posting for people inside your domain (utmp required for selectivity).inside_rloginโ disallows rlogins for people coming from inside your domain (utmp required for selectivity).inside_telnetโ disallows telnets for people coming from inside your domain (utmp required for selectivity).jumpโ theโjโ(jump) command gets disabled. no jumping bestie.multibookโ multiple bookmarks are a no. one bookmark, and that's the vibe.mailโ disallows mail. the inbox stays empty ๐news_postโ no USENET News posting.options_saveโ you can't save options in.lynxrc.outside_ftpโ disallows ftps for people coming from outside your domain (utmp required for selectivity).outside_newsโ disallows USENET news reading and posting for people coming from outside your domain (utmp required for selectivity). This restriction applies toโnewsโ,โnntpโ,โnewspostโ, andโnewsreplyโURLs โ but not toโsnewsโ,โsnewspostโ, orโsnewsreplyโ, in case they are supported. sneaky little s-ones ๐outside_rloginโ disallows rlogins for people coming from outside your domain (utmp required for selectivity).outside_telnetโ disallows telnets for people coming from outside your domain (utmp required for selectivity).printโ disallows most print options. no printing, it's giving screens-only โจshellโ shell escapes get disallowed, and so dolynxexecorlynxprogG)oto's.suspendโ no Unix Control-Z suspends with escape to shell. the app is staying put ๐telnet_portโ you can't specify a port in telnet G)oto's.useragentโ modifications of theUser-Agentheader are disallowed. the header stays untouched ๐ธ
-resubmit_postsโ toggles forced resubmissions (no-cache) of forms with method POST when the documents they returned are sought with thePREV_DOCcommand or from the History List. The default isโoffโ.-rloginโ disable recognition of rlogin commands. The default isโoffโ.-scrollbarโ toggles showing scrollbar. The default isโoffโ.-scrollbar_arrowโ toggles showing arrows at ends of the scrollbar. The default isโonโ. ๐-selectiveโ require.www_browsablefiles to browse directories.-session=FILENAMEโ resumes from specified file on startup and saves session to that file on exit.-sessionin=FILENAMEโ resumes session from specified file.-sessionout=FILENAMEโ saves session to specified file.-short_urlโ show very long URLs in the status line withโ...โto represent the portion which cannot be displayed. The beginning and end of the URL are displayed, rather than suppressing the end. The default isโoffโ.-show_cfgโ Print the configuration settings, e.g., as read fromโlynx.cfgโ, and exit. The default isโoffโ.-show_cursorโ If enabled the cursor will not be hidden in the right hand corner but will instead be positioned at the start of the currently selected link. Show cursor is the default for systems withoutFANCY_CURSEScapabilities. The default configuration can be changed inuserdefs.horlynx.cfg. The command line switch toggles the default. The default isโonโ. main character cursor energy fr ๐-show_rateโ If enabled the transfer rate is shown in bytes/second. If disabled, no transfer rate is shown. Uselynx.cfgor the options menu to select KB/second and/or ETA. The default isโonโ.-socks5_proxy=URLโ Tells lynx which SOCKS5 proxy to use for connections. Any network traffic, including all DNS resolutions except the one for URL itself, will be redirected through the SOCKS5 proxy.
The URL may be given as
โproxy.example.comโ,
โproxy.example.com:1080โ,
โ192.168.0.1โ, or
โ192.168.0.1:1080โ
(and IPv6 notation if so supported). A SOCKS5 proxy may also be specified via the environment variable SOCKS5_PROXY. Heads up: this option controls the builtin SOCKS5 support, which is unrelated to the option -nosocks. don't mix them up bestie ๐
-soft_dquotesโ toggles emulation of the old Netscape and Mosaic bug which treatedโ>โas a co-terminator for double-quotes and tags. The default isโoffโ.-sourceโ works the same as dump but outputs HTML source instead of formatted text. For example
lynx -source . >foo.html
generates HTML source listing the files in the current directory. Each file is marked by an HREF relative to the parent directory. Add a trailing slash to make the HREF's relative to the current directory:
lynx -source ./ >foo.html
-stack_dumpโ disable SIGINT cleanup handler The default isโoffโ.-startfile_okโ allow non-http startfile and homepage with-validate. The default isโoffโ.-stderrโ When dumping a document using-dumpor-source, Lynx normally does not display alert (error) messages that you see on the screen in the status line. Use the-stderroption to tell Lynx to write these messages to the standard error. The default isโoffโ.-stdinread the startfile from standard input (UNIX only). The default isโoffโ.-syslog=textโ information for syslog call.-syslog_urlsโ log requested URLs with syslog. The default isโoffโ.-tagsoupโ initialize parser, using Tag Soup DTD rather than SortaSGML. The default isโoffโ.-telnetโ disable recognition of telnet commands. The default isโoffโ.-term=TERMโ tell Lynx what terminal type to assume it is talking to. (This may be useful for remote execution, when, for example, Lynx connects to a remote TCP/IP port that starts a script that, in turn, starts another Lynx process.) it's Lynx-ception ๐-timeout=Nโ For win32, sets the network read-timeout, where N is given in seconds.-tlogtoggles between using a Lynx Trace Log and stderr for trace output from the session. The default isโonโ.-tnaturns onโTextfields Need Activationโmode. The default isโoffโ.-traceturns on Lynx trace mode. Destination of trace output depends on-tlog. The default isโoffโ.-trace_mask=valueโ turn on optional traces, which may result in very large trace files. Logically OR the values to combine options:1โ SGML character parsing states2โ color-style4โ TRST (table layout)8โ configuration (lynx.cfg,.lynxrc,.lynx-keymaps,mime.typesandmailcapcontents)16โ binary string copy/append, used in form data construction.32โ cookies64โ character sets128โ GridText parsing256โ timing512โ detailed URL parsing
The default is 0.
-traversalโ traverse all http links derived from startfile. When used with-crawl, each link that begins with the same string as startfile is output to a file, intended for indexing.
See CRAWL.announce for more information.
-trim_blank_linesโ toggles trimming of trailing blank lines as well as the related trimming of blank lines while collapsing BR tags. The default isโonโ.-trim_input_fieldsโ trim input text/textarea fields in forms. The default isโoffโ.-underline_linksโ toggles use of underline/bold attribute for links. The default isโoffโ.-underscoreโ toggles use of_underline_format in dumps. The default isโoffโ.-unique_urlsโ check for duplicate link numbers in each page and corresponding lists, and reuse the original link number. The default isโoffโ.-update_term_titleโ enables updating the title in terminal emulators. Use only if your terminal emulator supports that escape code. Has no effect when used with-notitle. The default isโoffโ.-use_mouseโ turn on mouse support, if available. The default isโoffโ.- Clicking the left mouse button on a link traverses it.
- Clicking the right mouse button pops back.
- Click on the top line to scroll up.
- Click on the bottom line to scroll down.
list gone girl, mouse girl โจ๐ฑ๏ธ
- The first few positions in the top and bottom line may invoke extra functions too, so poke around up there. โจ
Lynx has to be compiled with ncurses or slang for any of this mouse magic to work, bestie. If it's ncurses, clicking the middle mouse button pops up a simple menu. And heads up: mouse clicks may only work reliably while Lynx is idle, just sitting there waiting for input. ๐
-useragent=Nameโ swaps in an alternate LynxUser-Agentheader. Identity crisis, but make it intentional.-validateโ only acceptshttpURLs (for validation purposes). The full suite of security restrictions gets implemented too. ๐ก๏ธ-verboseโ toggles[LINK],[IMAGE]and[INLINE]comments, showing the filenames of those images. Default is โoffโ.-versionโ prints the version info and dips out. Bye! ๐-vikeysโ turns on vi-like key movement. Default is โoffโ.-wdebugโ enables Waterloo tcp/ip packet debug (it prints to thewattdebugfile). This one only applies to DOS versions compiled with WATTCP or WATT-32, so likeโฆ niche.-width=NUMBERโ how many columns to use when formatting dumps. Default is 80. It's capped by however many columns Lynx could actually display, typically 1024 (that's theMAX_LINEsymbol).-with_backspacesโ emits backspaces in the output if you're-dump'ing or-crawl'ing (the waymandoes). Default is โoffโ.-xhtml_parsingโ tells Lynx it's allowed to ignore certain tags that have no content in an XHTML 1.0 document. Like, for example,โ<p/>โgets discarded. Default is โoffโ.
๐ COMMANDS ๐
Okay so you can map more than one key to a given command โ mix and match, queen. Here are some of the most useful ones:
- Up arrow and Down arrow scroll you through the hypertext links. ๐ฆ
- Right arrow or Return will follow whatever hypertext link is highlighted. Go go go.
- Left Arrow or
โuโretreats from a link. Back it up. - Type
โHโ,โ?โ, or F1 for online help plus descriptions of all the key-stroke commands. ๐ - Type
โkโorโKโfor a list of the current key-stroke command mappings.- If the same command is mapped to the same letter differing only by upper/lowercase, only the lowercase mapping is shown.
- Type Delete to view the history list. ๐
๐ ENVIRONMENT ๐
On top of all the various โstandardโ environment variables like DISPLAY, HOME, PATH, SHELL, TMPDIR, USER, etc., Lynx also utilizes several Lynx-specific environment variables, if they exist. It's giving very custom.
Others may be created or modified by Lynx so it can pass data to an external program, or for other reasons. Those get listed separately below.
Also go check the sections on SIMULATED CGI SUPPORT and NATIVE LANGUAGE SUPPORT, both below. ๐
Note: not all environment variables apply to all types of platforms supported by Lynx, though most do. Feedback on platform dependencies is solicited โ they literally want to hear from you.
Environment Variables Used By Lynx:
COLORTERMโ if set, color capability for the terminal is forced on at startup time. The actual value you assign to the variable is ignored. This one is only meaningful if Lynx was built using theslangscreen-handling library. ๐LYNX_CFGโ if set, this overrides the default location and name of the global configuration file (normally,lynx.cfg) that was defined by theLYNX_CFG_FILEconstant in theuserdefs.hfile during installation.- See the
userdefs.hfile for more information.
- See the
LYNX_CFG_PATHโ if set, this overrides the compiled-in search-list of directories used to find the configuration files, e.g.,lynx.cfgandlynx.lss. The list is delimited with":"(or";"for Windows), just like thePATHenvironment variable.LYNX_HELPFILEโ if set, this overrides the compiled-in URL and configuration file URL for the Lynx help file.LYNX_LOCALEDIRโ if set, this overrides the compiled-in location of the locale directory which contains the native language (NLS) message text.LYNX_LSSโ if set, this specifies the location of the default Lynx character style sheet file. [Currently only meaningful if Lynx was built using curses color style support.]LYNX_SAVE_SPACEโ if set, this overrides the default path prefix for files saved to disk, which is defined in thelynx.cfgSAVE_SPACE:statement.- See the
lynx.cfgfile for more information.
- See the
LYNX_TEMP_SPACEโ if set, this overrides the default path prefix for temporary files that was defined during installation, plus any value that may be assigned to theTMPDIRvariable.MAILโ specifies the default inbox Lynx will check for new mail, if such checking is enabled in thelynx.cfgfile.NEWS_ORGANIZATIONโ if set, provides the string used in theOrganization:header of USENET news postings. It overrides the setting of theORGANIZATIONenvironment variable, if that's also set (and, on UNIX, the contents of an/etc/organizationfile, if present).NNTPSERVERโ if set, specifies the default NNTP server used for USENET news reading and posting with Lynx, vianews:URL's.ORGANIZATIONโ if set, provides the string used in theOrganization:header of USENET news postings. On UNIX, it overrides the contents of an/etc/organizationfile, if present.PROTOCOL_proxyโ Lynx supports proxy servers that can act as firewall gateways and caching servers. They're preferable to the older gateway servers (seeWWW_access_GATEWAY, below).
Each protocol used by Lynx, (http, ftp, gopher, etc.), can be mapped separately by setting environment variables of the form PROTOCOL_proxy. Protocols are indicated in a URI by the name before โ:โ, e.g., โhttpโ in โhttp://some.server.dom:port/โ for HTML.
Depending on your system configuration and supported protocols, the environment variables recognized by lynx may include
cso_proxy
finger_proxy
ftp_proxy
gopher_proxy
http_proxy
https_proxy
news_proxy
newspost_proxy
newsreply_proxy
nntp_proxy
no_proxy
rlogin_proxy
snews_proxy
snewspost_proxy
snewsreply_proxy
telnet_proxy
tn3270_proxy
wais_proxy
See the Lynx Users Guide for additional details and examples. ๐
RL_CLCOPY_CMDโ pipe the contents of the current link using this command as the target.RL_PASTE_CMDโ open a pipe to read from this command, pasting it into the current editable-field or command-prompt.SOCKS5_PROXYโ gets inspected if-socks5_proxyhas not been used (for the same content).SSL_CERT_DIRโ set to the directory containing trusted certificates.SSL_CERT_FILEโ set to the full path and filename for your file of trusted certificates.WWW_access_GATEWAYโ Lynx still supports use of gateway servers, with the servers specified viaโWWW_access_GATEWAYโvariables (whereโaccessโis lower case and can beโhttpโ,โftpโ,โgopherโorโwaisโ). However most gateway servers have been discontinued. Note that you do not include a terminalโ/โfor gateways, but you do for proxies specified byPROTOCOL_proxyenvironment variables.- See the Lynx Users Guide for details.
WWW_HOMEโ if set, this overrides the default startup URL specified in any of the Lynx configuration files. ๐
Environment Variables Set or Modified By Lynx:
LYNX_PRINT_DATEโ set by the Lynxp(rint)function to theDate:string seen in the document'sโInformation aboutโpage (=cmd), if any. It's created for use by an external program, as defined in alynx.cfgPRINTER:definition statement. If the field doesn't exist for the document, the variable is set to a null string under UNIX, orโNo Dateโunder VMS.LYNX_PRINT_LASTMODโ set by the Lynxp(rint)function to theLast Mod:string seen in the document'sโInformation aboutโpage (=cmd), if any. It's created for use by an external program, as defined in alynx.cfgPRINTER:definition statement. If the field doesn't exist for the document, the variable is set to a null string under UNIX, orโNo LastModโunder VMS.LYNX_PRINT_TITLEโ set by the Lynxp(rint)function to theLinkname:string seen in the document'sโInformation aboutโpage (=cmd), if any. It's created for use by an external program, as defined in alynx.cfgPRINTER:definition statement. If the field doesn't exist for the document, the variable is set to a null string under UNIX, orโNo Titleโunder VMS.LYNX_PRINT_URLโ Lynx sets this one itself when you hit the p(rint) function, bestie. It becomes theURL:string you'd see on the document's "Information about" page (that's the = cmd, iykyk). It exists so an external program can use it, as defined in aPRINTER:definition statement inlynx.cfg. If the document justโฆ doesn't have that field? The variable gets set to a null string under UNIX, or to"No URL"under VMS. ๐LYNX_TRACEโ set it and Lynx writes a trace file, literally as if you'd passed the-traceoption. โจLYNX_TRACE_FILEโ set it and it overrides the compiled-in trace file name. That default is eitherLynx.traceorLY-TRACE.LOG(the second one is the DOS/Windows platforms girlie ๐). Either way, the trace file lives relative to your home directory.LYNX_VERSIONโ Lynx always sets this one, no matter what. External programs can peek at it to figure out whether Lynx is the one that invoked them. ๐ต๏ธ
Also go read the comments in the distribution's sample mailcap file for notes on using this in that kind of file!
TERMโ normally Lynx reads this to figure out which terminal type is invoking it. BUT ๐จ if it's unset at startup, or it's literally the value"unknown", or you used the-termcommand-line option (check the OPTIONS section above, bestie), then Lynx will set or modify its value to the user-specified terminal type โ for the Lynx execution environment. Note this: if Lynx sets/modifies it, the values of theLINESand/orCOLUMNSenvironment variables may also get changed. ๐ญ
๐ฆ Simulated CGI Support ๐ฆ
If Lynx was built with the cgi-links option enabled, it can reach a cgi script directly โ no http daemon needed, no middleman, we love that for us. ๐
When it runs those "lynxcgi scripts" (if enabled, obvi), these variables may be set to simulate a CGI environment:
CONTENT_LENGTHCONTENT_TYPEDOCUMENT_ROOTHTTP_ACCEPT_CHARSETHTTP_ACCEPT_LANGUAGEHTTP_USER_AGENTPATH_INFOPATH_TRANSLATEDQUERY_STRINGREMOTE_ADDRREMOTE_HOSTREQUEST_METHODSERVER_SOFTWARE
Other environment variables are not inherited by the script, unless they're provided via a LYNXCGI_ENVIRONMENT statement in the configuration file. Check the lynx.cfg file, and the (draft) CGI 1.1 Specification at http://Web.Golux.Com/coar/cgi/draft-coar-cgi-v11-00.txt for the definition and usage of these variables.
The CGI Specification, plus other associated documentation, should be consulted for the general tea on CGI script programming. โ
โจ Native Language Support โจ
If Lynx is configured and installed with Native Language Support, it'll show status and other messages in your local language. ๐โจ See the file ABOUT_NLS in the source distribution โ or at your local GNU site โ for more info about internationalization.
These environment variables may be used to alter default settings:
LANGโ if set, it overrides the default message language. It's an ISO 639 two-letter code identifying the language. Heads up: language codes are NOT the same as the country codes given in ISO 3166. Don't mix them up, bestie, it's giving rookie mistake. ๐ญLANGUAGEโ if set, it overrides the default message language too. This is a GNU extension and it has higher priority for setting the message catalog thanLANGorLC_ALL. slay.LC_ALLandLC_MESSAGESโ these, if set, specify the notion of native language formatting style. They are POSIXly correct. ๐LINGUASโ if set prior to configuration, it limits the installed languages to specific values. It's a space-separated list of two-letter codes. Currently it's hard-coded to a wish list (manifesting the rest ๐ฏ๏ธ).NLSPATHโ if set, this is used as the path prefix for message catalogs. ๐
๐ฌ NOTES ๐ฌ
๐ Mailing Lists
Wanna contribute to Lynx's further development? Subscribe to the mailing list, bestie, we'd love to have you. Send email to <lynx-dev-request@nongnu.org> with subscribe lynx-dev as the only line in the body of your message. Just that. Nothing else. Fr fr. โจ
Send bug reports, comments, and suggestions to <lynx-dev@nongnu.org> after subscribing. ๐
Unsubscribe by sending email to <lynx-dev-request@nongnu.org> with unsubscribe lynx-dev as the only line in the body of your message. And do not send the unsubscribe message to the lynx-dev list itself. That's the one rule. Don't do it. ๐
๐ Acknowledgments ๐
Lynx has incorporated code from a whole bunch of sources along the way, and the lore is honestly iconic. The earliest versions of Lynx included code from Earl Fogel of Computing Services at the University of Saskatchewan, who implemented HYPERREZ in the Unix environment. HYPERREZ was developed by Niel Larson of Think.com and served as the model for the early versions of Lynx. Those versions also incorporated libraries from the Unix Gopher clients developed at the University of Minnesota, and the later versions of Lynx rely on the WWW client library code developed by Tim Berners-Lee and the WWW community.
Also a special thanks to Foteos Macrides who ported much of Lynx to VMS and did or organized most of its development since the departures of Lou Montulli and Garrett Blythe from the University of Kansas in the summer of 1994 through the release of v2.7.2 โ and to everyone on the net who has contributed to Lynx's development either directly (through patches, comments or bug reports) or indirectly (through inspiration and development of other systems). ๐ซถ The way this is a whole community effort? Obsessed.
๐ AUTHORS ๐
Lou Montulli, Garrett Blythe, Craig Lavender, Michael Grobe, Charles Rezac Academic Computing Services University of Kansas Lawrence, Kansas 66047
Foteos Macrides Worcester Foundation for Biomedical Research Shrewsbury, Massachusetts 01545
Thomas E. Dickey <dickey@invisible-island.net>
๐ SEE ALSO ๐
catgets(3), curses(3), environ(7), ftp(1), gettext(GNU), localeconv(3), ncurses(3), setlocale(3), termcap(5), terminfo(5)
And that's the whole page, bestie โ you made it to the end! ๐ This one's Lynx 2.9.3, dated 2026-05-26, and it lives at LYNX(1). Go forth and browse the text-web like the main character you are. ๐
๐โจ
๐ฆ where this page comes from
- alpine 3.24: lynx-doc 2.9.3-r0 ยท GPL-2.0-only
- arch rolling: lynx 2.9.3-1 ยท GPL-2.0-only
- nixpkgs unstable: lynx 2.9.3
- ubuntu stonking: lynx-common 2.9.3-2 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms