I was looking at the startup batch file for lynx, and noted that if running
Windows NT the following gives a much better appearance, and stores the lynx
temp files etc in the current user's profile directory:
Put a copy of this script in the %WINDIR% directory (generally C:\WINNT)
copy lynx.cmd %WINDIR%
Make a directory called %WINDIR%\lynx and copy lynx.exe to it
md %WINDIR%\lynx
copy linx.exe %WINDIR%\lynx
xcopy help\*.* %WINDIR%\lynx\help\ /s
Modify lynx.cfg to point to the help file at:
HELPFILE:file://localhost/C:/WINNT/lynx/help/lynx_help_main.html
Make a directory called %USERPROFILE%\lynx and copy lynx.cfg to it
md %USERPROFILE%\lynx
copy lynx.cfg %USERPROFILE%\lynx
Set up the lynx icon
copy icon\lynx.ico %WINDIR%\system32
<<<<!!!! START LYNX.CMD !!!!>>>>
@ECHO OFF
set term=vt100
REM Parse out and save the current screen height
for /f "tokens=2" %%f in ('mode con^|findstr "Lines:"') do set SAVELINES=%%f
REM reset the screen height to a reasonable value that lynx will display
correctly on
mode con lines=50
REM put all the user profile information in the USERPROFILE directory
SET LYNXHOME=%USERPROFILE%\lynx
REM make sure the appropriate directories exist
if NOT EXIST %LYNXHOME% mkdir %LYNXHOME%
if NOT EXIST %LYNXHOME%\temp mkdir %LYNXHOME%\temp
REM Prepare to run Lynx
set HOME=%LYNXHOME%
set temp=%LYNXHOME%\temp
REM check to
if exist %LYNXHOME%\lynx.cfg set lynx_cfg=%LYNXHOME%\lynx.cfg
%WINDIR%\lynx\lynx.exe %*
REM After exiting lynx, reset the current screen height to the saved screen
height
mode con lines=%SAVELINES%
<<<< END OF NT SCRIPT FILE >>>
Thanks
Tom Canter
QE Architect
New Era of Networks, Inc.