----------------------------------------------------------------------------- Lynx version 2.8.1 with slang for OS/2 ----------------------------------------------------------------------------- 1999/7/17 SAWATAISHI Jun, YOKOHAMA, JAPAN http://www2s.biglobe.ne.jp/~vtgf3mpr/indxos2.htm Introduction ============ Lynx, a fully-featured World Wide Web (WWW) client, has OS/2 code in its source level. So, we can easily make an OS/2 executable using emx/gcc and OS/2 ported `ncurses library'. You can get OS/2 lynx linked with ncurses and OS/2 ported ncurses lib- rary from a ftp site: ftp://ftp.leo.org/pub/comp/os/os2/tcpip/www/lynx_282_dev3.zip ftp://ftp.leo.org/pub/comp/os/os2/gnu/emx+gcc/contrib/nc-emx-b.zip Or from `leo's mirror sites: ftp://ftp.uni-heidelberg.de/pub/os2/ Heidelberg, Germany ftp://ftp.uni-siegen.de/pub/os2/ Siegen, Germany ftp://xenia.sote.hu/pub/os2/munich/ Budapest, Hungary ftp://ftp.man.poznan.pl/pub/os2/ Poznan, Poland ftp://crydee.sai.msu.su/pub/comp/os/os2/leo/ Moscow, Russia I got `lynx_282_dev3.zip'. I was able to use lynx in OS/2 shell and `xterm' or `kterm' in XFree86 for OS/2. Mouse is functional. Text mode WWW browser is very comfortable for me. Only dissatisfaction was colorization of lynx. Colorization depends on `ncurses'. It's implemen- tation does not allow users to easily setup colorization. Users cannot modi- fy colors by lynx's configration file (lynx.cfg). I happened to know that we can configure colors by editing `lynx.cfg' for lynx with `slang'. So, I compliled `slang' and linked with lynx. Now colorization of lynx is more beautiful and easier than that of lynx with `ncurses', I do think. Lacked feature in lynx with slang for OS/2 ========================================== MOUSE does not work. COMPILATION ENVIRONMENT ======================= OS/2 version 4 gcc version pgcc-2.91.60 19981201 (egcs-1.1.1 release) emx 0.9d with fix02 REQUIRED RESOURCES ================== emx runtime version 0.9d ftp://hobbes.nmsu.edu/pub/os2/dev/emx/v0.9d/emxrt.zip ftp://ftp.leo.org/pub/comp/os/os2/leo/gnu/emx+gcc/emxrt.zip Intel 586 (PENTIUM) or later CPU Installation ============ Be sure that your machine has required resouces. Unzip `lynx281_slang_os2.zip' somewhere is HPFS partition and do following steps. x:\tmp> unzip lynx281_slang_os2.zip x:\tmp> copy bin\lynx.exe SOMEWHERE ( in PATH ) x:\tmp> copy bin\lynx281.cmd SOMEWHERE ( in PATH ) x:\tmp> copy dll\*.dll SOMEWHERE ( in LIBPATH ) x:\tmp> copy man\man1\lynx.1 SOMEWHERE ( in MANPATH ) Determine where to install help files, documents and configuration file. And install them like this. x:\tmp> mkdir c:\emx\share\lynx_help x:\tmp> xcopy /s lib\lynx_help\* c:\emx\share\lynx_help\ x:\tmp> mkdir c:\emx\share\lynx_doc x:\tmp> xcopy /s lib\lynx_doc\* c:\emx\share\lynx_doc\ x:\tmp> mkdir c:\emx\share\lynx_doc x:\tmp> copy lib\lynx.cfg c:\emx\share\ Set environmental variable `LYNX_CFG' in your `config.sys' for some batch file. set LYNX_CFG=c:/emx/share/lynx.cfg `lynx.cfg' included in this ZIP archive has my own configuration, so you must check and may correct at least 6 lines. 45 STARTFILE:file://localhost/h:/jsawa/biglobe/indxos2.htm `STARTFILE' has the same meaning as `HOME' of NETSCAPE. You must edit this line to refer really existing URL. 58 HELPFILE:file://localhost/f:/usr/local/lib/lynx_help/lynx_help_main.html.gz You may change "f:/usr/local" to "c:/emx/share/lynx_help". 1012 http_proxy:http://localhost:8080/ I use a proxy server, `delegate'. If you have no proxy server, comment out the line with '#'. If you have one, you may change port number. 265 CHARACTER_SET:Japanese (Shift_JIS) 279 ASSUME_CHARSET:Japanese (Shift_JIS) 291 ASSUME_LOCAL_CHARSET:Japanese (Shift_JIS) If you prefer to set another language, change these line. c.f. "iso-8859-1" for English speaking people When you completed installing files, and editing `config.sys and `lynx.cfg', reboot your system. Usage ===== First, you should read file in directory `lynx_doc'. If `STARTFILE' is properly set, simply execute lynx and you'll see HTML documents. Inside lynx, hit 'h' to open help files (including User's Guide). Hit LEFTARROW to display keyboard defaults. To mofify colors, edit COLORS section in `lynx.cfg'. I recommend you that make program object of `lynx281.cmd' and invoke lynx by double-clicking it. `lynx281.cmd' has following lines: @echo off mode con1 80,35 lynx.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 Please change "80,35" as you like. (c.f. "100,40") Compile and Link from sources ============================= 1. Get source archives SLang 1.3.5 + J0.6.3 (slang-j 0.6.3) Version http://www.inatori.netsweb.ne.jp/k-yosino/slang1.3.5_j063.tar.gz This copy is available for Japanese charactor code. lynx version 2.8.1 ftp://www.slcc.edu/pub/lynx/release2-8-1/lynx2-8-1.tar.bz2 I extracted this file from `lynx-2.8.1-5vl1.src.rpm' which is included in Vine 1.0 CDROM (One of Japanese Linux distri- butions). Patch files included in the rpm are: * lynx2.8.1rel.2-981106.patch * lynx2.8.1rel.2-981118.patch * lynx2.8.1rel.2-981204.patch lynx2-8-1-redhat.patch * lynx2-8-1-overflow.patch lynx2-8-1-vine.patch I applied patch files marked with '*'. Before compiling, be sure that `lynx281_slang_os2.zip' is unzipped. `slang1.3.5-j063-OS2.diff.gz' and `lynx2-8-1-OS2.diff.gz' are in the directory `patchs_emx'. 2. Compile slang library c:\> mkdir src c:\> cd src c:\src> tar zxvf SOMEWHERE/slang1.3.5_j063.tar.gz c:\src> cd slang1.3.5-j063 c:\src\slang1.3.5-j063> attrib /s -r * c:\src\slang1.3.5-j063> gzip -dc SOMEWHER/patchs_emx/slang1.3.5-j063-OS2.diff.gz c:\src\slang1.3.5-j063> cd src c:\src\slang1.3.5-j063\src> make c:\src\slang1.3.5-j063\src> copy emxobjs\slang.a `LIBRARY_PATH' `LIBRARY_PATH' is an environmental variable for gcc/emx. It may be "x:/emx/lib". `slang1.3.5-j063-OS2.diff.gz' is not a mandatory patch. You can make `slang.a' with some modifications for `Makefile' without this patch. 3. Make `lynx.exe' c:\src\slang1.3.5-j063\src> cd ..\..\.. c:\src> bzip2 -d SOMEWHERE/lynx2-8-1.tar.bz2 c:\src> tar xvf SOMEWHERE/lynx2-8-1.tar c:\src> cd lynx2-8-1 c:\src\lynx2-8-1> attrib /s -r * c:\src\lynx2-8-1> gzip -dc SOMEWHER/patchs_emx/lynx2-8-1-OS2.diff.gz Edit `Makefile' for following lines: SHELL = /bin/sh prefix = g:/emx CFLAGS = -Id:/SRC/slang1.3.5-j063/src -Zmtd -DOS2 -D__EMX__ LIBS = -Zbin-files -lz113 -lsocket You may have to change "/bin/sh" to "sh". Also "d:/SRC/slang1.3.5-j063/src" is to be corrected. If your zlib library is named `z.a', change "-lz113" to "-lz". IF "-Zbin-files" is lacked, you will notice downloaded binary files are corrupted. c:\src\lynx2-8-1> make c:\src\lynx2-8-1> make install prefix='YOUR_PREFERENCE' `lynx2-8-1-OS2.diff.gz' includes, `config.status', `config.cache', Makefiles, modified `LYCurses.c' for slang, and patch files from the rpm mentioned above. If you want to run `configure' without `lynx2-8-1-OS2.diff.gz', just do it with these options: --with-screen=slang --enable-gzip-help --with-zlib --enable-externs --enable-underlines --host=i386-pc-os2 You'll realize `configure' to be modified. #END OF DOCUMENT