Re: [Q] browser(?) of NEWS(OS4.2.1a+)
中治@豊橋です。
>>>>> In <YAS.03Jul11162542@kirk.is.tsukuba.ac.jp>
>>>>> yas@is.tsukuba.ac.jp (Yasushi Shinjo) wrote:
> > lynx は以前試しましたが日本語が全然使えませんでした。仮に
> > I18N がうまくいったとしても、NEWS-OS 端末は ShiftJIS が標準
> > なので扱いにくいんじゃないかしらん。
> 古い lynx (2.5) なら、動くと思います。Sony NEWS でもコンパイ
> ルできるようにしたと書いてあります。リンクが切れているんだけ
> れど。
最近の w3m も簡単な修正で動きました。gdk-pixbuf をインストールしておく
と、kterm 上で画像表示もできました。
コンパイルできたときの config.h をつけておきます。
/usr/sony/lib/libjcurses.a でなくてもよいかもしれません。
--
NAKAJI Hiroyuki (中治 弘行)
^L
/*
* Configuration for w3m
*/
#ifndef _CONFIGURED_
#define _CONFIGURED_
/* User Configuration */
/*
If you define DICT, you can use dictionary look-up function
in w3m. See README.dict for detail.
*/
#define USE_DICT
/*
If you want to load and save URL history.
*/
#define USE_HISTORY
/*
USE_BG_COLOR enables w3m to set background color.
*/
#define USE_BG_COLOR
/*
* Do word fill
*/
#undef FORMAT_NICE
/*
* Enable id attribute
*/
#define ID_EXT
/*
* Save Current-buffer Information
*/
#undef USE_BUFINFO
/*
* Support EGD (Entropy Gathering Daemon)
*/
#define USE_EGD
/*
* Remove line trailing spaces in html buffer.
*/
#undef ENABLE_REMOVE_TRAILINGSPACES
/*
* thin chars for menu frame
*/
#undef MENU_THIN_FRAME
/*
* Use raw scroll
*/
#undef USE_RAW_SCROLL
/*
*/
#undef TABLE_EXPAND
#undef TABLE_NO_COMPACT
#define NOWRAP
#define MATRIX
/**********************************************************/
#ifdef makefile_parameter
BIN_DIR = /usr/local/bin
AUXBIN_DIR = /usr/local/lib/w3m
LIB_DIR = /usr/local/lib/w3m/cgi-bin
HELP_DIR = /usr/local/share/w3m
MAN_DIR = /usr/local/man
MAN1_DIR = $(MAN_DIR)/man1
MAN1_JA_DIR = $(MAN_DIR)/ja/man1
ETC_DIR = /usr/local/etc/w3m
RC_DIR = ~/.w3m
HELP_FILE = w3mhelp-w3m_ja.html
SYS_LIBRARIES = /usr/sony/lib/libjcurses.a -ltermcap -L/usr/local/ssl/lib -L/usr/local/ssl/lib -lssl -lcrypto -lmissing
LOCAL_LIBRARIES = -l44bsd
CC = gcc
MYCFLAGS = -O -I./gc/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
LDFLAGS =
GCCFLAGS = -O -I./gc/include -I./$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DSILENT -DALL_INTERIOR_POINTERS
KEYBIND_SRC = keybind.c
KEYBIND_OBJ = keybind.o
EXT=
MATHLIB=-lm
Z_CFLAGS=-I/usr/local/include
ZLIB=-L/usr/local/lib -lz
AUXBIN_TARGETS=$(INFLATE) $(IMGDISPLAY)
LIB_TARGETS=$(BOOKMARKER) $(HELPER)
IMGCFLAGS=-I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include
IMGLDFLAGS=-L/usr/local/lib -lgdk_pixbuf -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lglib -lintl -lgdk_pixbuf_xlib -lXext -lXext -lX11 -lm -ljpeg -ltiff -lpng -lz -lm -lmissing
IMGX11CFLAGS=-I/usr/local/include/gdk-pixbuf-1.0 -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include
IMGFBCFLAGS=
IMGOBJS=w3mimg/w3mimg.o w3mimg/x11/x11_w3mimg.o
GC_CFLAGS=
GCLIB=gc/gc.a
GCTARGET=gc/gc.a
RANLIB=ranlib
MKDIR=mkdir -p
PERL=/usr/local/bin/perl
VERSION=0.4.1
MODEL=NEWS-OS.news5000-monster-JA
INSTALL_W3MIMGDISPLAY=$(INSTALL_PROGRAM)
#else
#define DISPLAY_CODE 'E'
#define SYSTEM_CODE 'E'
#define JA 0
#define EN 1
#define LANG JA
#define KANJI_SYMBOLS
#define USE_COLOR
#define USE_ANSI_COLOR
#undef USE_MIGEMO
#define EMACS_LIKE_LINEEDIT
#define VI_PREC_NUM
#define USE_MARK
#define LABEL_TOPLINE
#define NEXTPAGE_TOPLINE
#define USE_MOUSE
#undef USE_SYSMOUSE
#define USE_MENU
#define USE_COOKIE
#define USE_DIGEST_AUTH
#define USE_SSL
#undef USE_SSL_VERIFY
#define FTPPASS_HOSTNAMEGEN
#define USE_EXTERNAL_URI_LOADER
#define USE_W3MMAILER
#define USE_NNTP
#define USE_GOPHER
#define USE_ALARM
#define USE_IMAGE
#define USE_W3MIMG_X11
#undef USE_W3MIMG_FB
#undef USE_IMLIB
#define USE_GDKPIXBUF
#undef USE_IMLIB2
#define USE_HELP_CGI
#define USE_XFACE
#define DEF_EDITOR "/usr/ucb/vi"
#define DEF_MAILER ""
#define DEF_EXT_BROWSER "/usr/local/bin/lynx"
/* fallback viewer. mailcap override these configuration */
#define DEF_IMAGE_VIEWER "xv"
#define DEF_AUDIO_PLAYER "showaudio"
/* for USE_MIGEMO */
#define DEF_MIGEMO_COMMAND "migemo -t egrep /usr/local/share/migemo/migemo-dict"
#define AUXBIN_DIR "/usr/local/lib/w3m"
#define LIB_DIR "/usr/local/lib/w3m/cgi-bin"
#define HELP_DIR "/usr/local/share/w3m"
#define ETC_DIR "/usr/local/etc/w3m"
#define HELP_FILE "w3mhelp.html"
#define HELP_CGI "w3mhelp"
#define W3MCONFIG "w3mconfig"
#define IMGDISPLAY "w3mimgdisplay"
#define XFACE2XPM "xface2xpm"
#define RC_DIR "~/.w3m"
#define BOOKMARK "bookmark.html"
#define CONFIG_FILE "config"
#define KEYMAP_FILE "keymap"
#define MENU_FILE "menu"
#define MOUSE_FILE "mouse"
#define COOKIE_FILE "cookie"
#define HISTORY_FILE "history"
#define PASSWD_FILE RC_DIR "/passwd"
#define PRE_FORM_FILE RC_DIR "/pre_form"
#define USER_MAILCAP RC_DIR "/mailcap"
#define SYS_MAILCAP "/etc/mailcap"
#define USER_MIMETYPES "~/.mime.types"
#define SYS_MIMETYPES "/usr/local/lib/mime.types"
#define USER_URIMETHODMAP RC_DIR "/urimethodmap"
#define SYS_URIMETHODMAP ETC_DIR "/urimethodmap"
#define DEF_SAVE_FILE "index.html"
#undef USE_BINMODE_STREAM
#define HAVE_TERMIOS_H
#define HAVE_DIRENT_H
typedef long long clen_t;
#undef HAVE_STRTOLL
#undef HAVE_STRTOQ
#undef HAVE_ATOLL
#undef HAVE_ATOQ
#define HAVE_STRCASECMP
#undef HAVE_STRCASESTR
#define HAVE_STRCHR
#define HAVE_STRERROR
#define HAVE_SYS_ERRLIST
#define HAVE_BCOPY
#undef HAVE_WAITPID
#define HAVE_WAIT3
#undef HAVE_STRFTIME
#define HAVE_GETCWD
#define HAVE_GETWD
#define HAVE_SYMLINK
#define HAVE_READLINK
#define HAVE_LSTAT
#define HAVE_SETENV
#define HAVE_PUTENV
#undef HAVE_SRAND48
#define HAVE_SRANDOM
#undef HAVE_GETPASSPHRASE
#define HAVE_CHDIR
void fclose(FILE*);
void pclose(FILE*);
#define SETJMP(env) setjmp(env)
#define LONGJMP(env,val) longjmp(env,val)
#define JMP_BUF jmp_buf
#define HAVE_FLOAT_H
#undef HAVE_SYS_SELECT_H
typedef int MySignalHandler;
#define SIGNAL_ARG int _dummy
#define SIGNAL_ARGLIST 0
#define SIGNAL_RETURN return 0
#define HAVE_SETPGRP
#define SETPGRP() setpgrp()
/*
If you want to use IPv6, define this symbol.
*/
#undef INET6
/** dont edit below **/
#ifndef HAVE_SRAND48
#ifdef HAVE_SRANDOM
#define srand48 srandom
#define lrand48 random
#else /* HAVE_SRANDOM */
#define USE_INCLUDED_SRAND48
#endif /* HAVE_SRANDOM */
#endif
#ifndef HAVE_LSTAT
#define lstat stat
#endif
#if defined( __CYGWIN32__ ) && !defined( __CYGWIN__ )
#define __CYGWIN__
#endif
#if defined( __CYGWIN__ ) || defined( __EMX__ )
#define SUPPORT_DOS_DRIVE_PREFIX 1
#endif
#if defined( __CYGWIN__ )
#define SUPPORT_NETBIOS_SHARE 1
#if LANG == JA
#define SUPPORT_WIN9X_CONSOLE_MBCS 1
#endif
#endif
#if defined(__DJGPP__)
#define DEFAULT_TERM "dosansi"
#else
#define DEFAULT_TERM 0 /* XXX */
#endif
#if defined(__EMX__) /* use $extension? */
#define GUNZIP_CMDNAME "gzip"
#define BUNZIP2_CMDNAME "bzip2"
#define INFLATE_CMDNAME "inflate.exe"
#define W3MBOOKMARK_CMDNAME "w3mbookmark.exe"
#define W3MHELPERPANEL_CMDNAME "w3mhelperpanel.exe"
#define DEV_NULL_PATH "nul"
#define DEV_TTY_PATH "con"
#define CGI_EXTENSION ".cmd"
#define USE_PATH_ENVVAR
#else
#define GUNZIP_CMDNAME "gunzip"
#define BUNZIP2_CMDNAME "bunzip2"
#define INFLATE_CMDNAME "inflate"
#define W3MBOOKMARK_CMDNAME "w3mbookmark"
#define W3MHELPERPANEL_CMDNAME "w3mhelperpanel"
#define DEV_NULL_PATH "/dev/null"
#define DEV_TTY_PATH "/dev/tty"
#define CGI_EXTENSION ".cgi"
#endif
#define PATH_SEPARATOR ':'
#define GUNZIP_NAME "gunzip"
#define BUNZIP2_NAME "bunzip2"
#define INFLATE_NAME "inflate"
#endif /* makefile_parameter */
#endif /* _CONFIGURED_ */
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735