
REM   **************************************
REM   To get Lynx to work on OS/2, you may
REM   need to run these commands.  
REM
REM   These are examples and will probably
REM   need to be adjusted to fit your situation
REM   and your particular system.
REM
REM   by Dallas E. Legan
REM   October 2002
REM
REM   *********LYNX 2.8.4 STUFF*************
REM   From Lynx 2.8.4 man page:
REM
REM   Put these SET statements in a .CMD file to run from
REM   a CMD.EXE prompt before starting Lynx.  
REM   Experiment with them until you get results 
REM   you want, and then you can tack them on the end of your 
REM   CONFIG.SYS file if you want them made 'permanent'.
REM   You might even just
REM
REM   'TYPE  lynxconf.cmd  >>  config.sys' or such.
REM
REM   ****** general EMX variables needed by Lynx ***********************
REM
REM   IF you use EMX a lot, you probably already have the
REM   following variables defined in your environment,
REM   and might need to comment/delete these so they don't
REM   conflict with what you already use:
REM
REM   SET HOME=C:/HOME
REM        ... This variable is used by many EMX programs,
REM            and I actually define it elsewhere in my CONFIG.SYS
REM            file, just giving a typical example here.
REM            Lynx uses this to store the .lynxrc personal
REM            configuration/'options' file, .lynxsig
REM            mail signature file, and bookmark files.
REM 
SET TERMINFO=E:/TCPIP/BIN/_W3M/USER/TERMINFO
REM        ... I'd installed contents of TERMINFO directory
REM            with w3m installation, but Lynx does come with a set.
REM            You may have installed some with EMX
REM            installation.
REM    
REM   SET TERM=ansi.bsc
REM        ....I actually set this elsewhere in my CONFIG.SYS
REM            but show a typical setting here.
REM            It must be set to the name of one of the files
REM            found in the subdirectories in the TERMINFO.
REM            It determines what type of terminal emulation is used.
REM            TERMINFO directory will have subdirectories
REM            named 'a','b','c',...'z'
REM            If you have trouble getting color to work,
REM            try one of the 'ansi...' types in the 'a'
REM            subdirectory.
REM            This also works if you have trouble getting
REM            the mouse to function properly - some terminal
REM            types don't enable the mouse.
REM            With Lynx, with the proper settings in the
REM            lynx.cfg file and TERM setting, the mouse
REM            will work in full screen mode in OS/2,
REM            as well as from a windowed prompt.
REM          
REM    
REM  Make sure the DLL directory packed with Lynx is either
REM  in the LIBPATH statement of your CONFIG.SYS,
REM  or the contents are copied to a directory listed in 
REM  LIBPATH statement, or here or elsewhere define either
REM  BEGINLIBPATH=...   or a ENDLIBPATH=.... statements
REM  that includes that DLL directory.
REM  Being as Lynx 2.8.4 only seemed to have one special
REM  DLL file, I just copied over to another directory in 
REM  LIBPATH
REM
REM SET COLORTERM=
REM        ... If set to any value this variable will force
REM            Lynx to function in color mode, and it
REM            cannot be turned off.  No B&W  :-)
REM     
REM
REM   END of typical EMX settings pertinent to Lynx
REM
REM  Items that might be used by other programs,
REM  but my experience is too limited to say one way or 
REM  another:
REM
SET WWW_HOME=http://www.lafn.org
REM     ....I know this is also used by W3M, 'the other text browser'.
REM         It simply defines a default page if no URL
REM         is given when the browsers are started.
REM
REM  SET MAIL=
REM     ....This variable sets the location of a mail inbox directory
REM         that if so configured in your LYNX.cfg file,
REM         will be checked periodically to notify you if new mail
REM         has arrived.
REM
SET HOMEDRIVE=E:
REM     ....This variable seems to define the partition where
REM         the Lynx binary is located.  
REM         If it is not defined, some of the other variable
REM         volume specifications, like that for HOME,
REM         will be ignored, and the directories they name
REM         must be on the same partition as the Lynx.exe 
REM         executable file.
REM         The specification for the 'Jumps' file 
REM         in lynx.cfg, a sort of fixed content bookmark file
REM         also uses this.
REM
REM  SET ORGANIZATION= 
REM     ....will be over ridden by NEWS_ORGANIZATION
REM
SET NEWS_ORGANIZATION=Me
REM     ....This will show up in the heading of any
REM         news posts made with Lynx
REM
SET NNTPSERVER=snews.apol.com.tw
REM     ....I found this open news server on the 
REM         open news server tracking web site.
REM         It is supposed to have
REM         the most news groups of any known.
REM         This server will be used with NEWS:<newsgroup> URLs,
REM         to read news.
REM         You can still use other news servers
REM         by using the NNTP://<servername>/<newsgroup>
REM         schema.
REM
SET DISPLAY=1
REM      ...Under some circumstances, this variable would actually
REM         be set to the full path/filename of your image viewing
REM         program.
REM         My personal experience is that while Lynx 2.8.4 for OS/2
REM         does not use any path/filename specified by this
REM         variable, it does need to be defined, and seems to
REM         provide a simple go/no go permission for image viewing.
REM         If it is set to null or undefined, Lynx will try to
REM         download image files instead of viewing them.
REM
REM  SET <protocol>_proxy=http://some.server.com:port/
REM      ...These variables, where <protocol> can be any of
REM         the URL schema Lynx can handle, specify any
REM         proxy servers Lynx will go through to access the
REM         Internet, instead of directly going to the addresses
REM         you give.  These could be part of a firewall, NAT,
REM         caching system and such.
REM         If you are behind a proxy based firewall,
REM         failure to work with the proxy servers will
REM         keep you from accessing any but local pages or files.
REM         Incorrectly giving proxy servers when there are none
REM         will also cause connection problems.
REM     
REM    END of possibly general EMX ENVIRONMENTAL variables,
REM    needed by Lynx.
REM    ************************************************************
REM
REM    Lynx specific environmental variables:
REM
SET LYNX_CFG=E:/TCPIP/ETC/LYNX.CFG
REM      ...This variable will define the configuration file Lynx uses.
REM         Study this file and change it as needed. 
REM         Understanding it is key to making Lynx do what you want.
REM 
SET LYNX_TEMP_SPACE=i:/tmp
REM      ...This scratch directory must be in a partition that 
REM         allows long, complex file names.
REM         If it is not, you will get many error messages indicating
REM         Lynx is unable to open temporary files.
REM         HPFS, EXT2, JFS, and the RAMFS (search Hobbes)
REM         seem to be adequate.
REM         Man pages, Lynx.cfg and other notes indicate
REM         TMP, TMPDIR, TEMP, TEMPDIR variables can be used in place
REM         of this variable, as equivalent names for the scratch space.
REM         My experience, however, is that the 
REM         Lynx 2.8.4 build on Hobbes needs this particular name
REM         for the scratch space.
REM
SET LYNX_SAVE_SPACE=i:/tmp
REM    .... over rides SAVE_SPACE in .CFG
REM         This variable sets where downloads go by default.
REM         Again, this probably cannot be on a simple FAT
REM         file system.
REM
SET LYNX_LSS=E:/TCPIP/ETC/LYNX.LSS
REM     ....If you do not define this variable, Lynx will try to 
REM         use a default value, and the file will have to be
REM         located there.  This file specifies things for the
REM         terminal behavior.
REM
REM  SET LYNX_TRACE=  
REM     ....To turn on tracing, logged in a file.
REM
REM   ************* End of Lynx stuff *************************
REM   **************************************
