diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:56:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 17:56:50 +0000 |
commit | 8e9f8f2d0dcdddec35091ddbbdc79650763ec922 (patch) | |
tree | 4f88ed317d44fb4e5d9ab77e565bf1d910a8f560 /samples/lynx.bat | |
parent | Initial commit. (diff) | |
download | lynx-8e9f8f2d0dcdddec35091ddbbdc79650763ec922.tar.xz lynx-8e9f8f2d0dcdddec35091ddbbdc79650763ec922.zip |
Adding upstream version 2.9.0dev.6.upstream/2.9.0dev.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | samples/lynx.bat | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/samples/lynx.bat b/samples/lynx.bat new file mode 100644 index 0000000..417cd74 --- /dev/null +++ b/samples/lynx.bat @@ -0,0 +1,31 @@ +@echo off
+@rem $LynxId: lynx.bat,v 1.9 2018/03/21 16:10:36 tom Exp $
+@rem demonstrate lynx with color-style
+setlocal
+
+ set TERM=vt100
+rem Set HOME to make URLs in config work, though this prevents -trace
+ set HOME=%~dp0
+ set PATH=%HOME%;%PATH%
+
+rem We need a temporary directory
+ if not "x%LYNX_TEMP_SPACE%"=="x" goto :do_cfg
+ if "x%TEMP%"=="x" set LYNX_TEMP_SPACE=%TEMP%
+ if not "x%TEMP%"=="x" goto :do_cfg
+ if "x%TMP%"=="x" set LYNX_TEMP_SPACE=%TMP%
+ if not "x%TMP%"=="x" goto :do_cfg
+
+ set LYNX_TEMP_SPACE=%HOMEDRIVE%%HOMEPATH%tmp
+ mkdir "%LYNX_TEMP_SPACE%"
+ if not errorlevel 0 goto :do_cfg
+
+ echo Cannot make temp-directory
+ goto :eof
+
+:do_cfg
+ set LYNX_CFG_PATH=%HOME%
+ set LYNX_CFG=%HOME%lynx-demo.cfg
+ set LYNX_LSS=%HOME%lynx.lss
+
+ lynx.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
+endlocal
|