Commit Graph

608 Commits

Author SHA1 Message Date
Fumitoshi UKAI
aa1cdab76b fix indent 2002-11-15 15:37:33 +00:00
Fumitoshi UKAI
7eb27d5b8b [w3m-dev 03433] cygwin console on Win9X
* configure (config.h): SUPPORT_WIN9X_CONSOLE_MBCS
* linein.c (inputLineHistSearch): enable_win9x_console_input()
				disable_win9x_console_input()
* main.c (mouse): cygin_mouse_btn_swapped
* terms.c (is_xterm): static
	(isLocalConsole): added
	(cygwin_mouse_btn_swapped): added
	(check_win32_console): deleted
	(check_win9x): added
	(init_win32_console_handle): check ttyslot()
	(enable_win9x_console_input): added
	(disable_win9x_console_input): added
	(read_win32_console_input): delete ifdef MOUSE
	(cmp_tv): deleted
	(subtract_tv): deleted
	(GetConsoleHwnd): added
	(cygwin_version): added
	(select_or_poll_win32_console): deleted
	(check_cygwin_console): added
	(select_win32_console): deleted
	(set_tty): check_cygin_console()
	(term_title): SetConsoleTitle()
	(CYGWIN_ON): added
	(CYGIN_OFF): added
	(mouse_init): NEED_CYGWIN_ON
	(mouse_end): NEED_CYGWIN_OFF
* terms.h (cygwin_mouse_btn_swapped): added
	(enable_win9x_console_input): added
	(disable_win9x_console_input): added
	(NEED_CYGWIN_ON): added
	(NEED_CYGWIN_OFF): added
From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
2002-11-15 15:36:48 +00:00
Fumitoshi UKAI
8b70770b0d [w3m-dev 03432] Re: tab browser
* display.c (displayBuffer): s/buf->LINES/LASTLINES/ in cygwin
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15 15:23:45 +00:00
Fumitoshi UKAI
e37d03123c NEWS: func: DOWNLOAD_LIST 2002-11-15 15:21:55 +00:00
Fumitoshi UKAI
719d13ef10 fix indent 2002-11-15 15:21:07 +00:00
Fumitoshi UKAI
62fc785e24 [w3m-dev 03431] save file by background process
* file.c (loadGeneralFile): use _doFileCopy()
	(_doFileCopy): renamed from doFileCopy()
			lock
			fork & save
	(doFileSave): lock
			fork & save
* fm.h (DownloadList): added
	(FirstDL): added
	(LastDL): added
* form.c (struct internal_action): add download
* funcname.tab (DOWNLOAD_LIST): added
* html.h (URLFile): add url
* main.c (dump_extra): add add_download_list
	(main): add_download_list, ldDL()
	(_quitfm): added
	(quitfm): rewrite with _quitfm()
	(qquitfm): ditto
	(w3m_exit): stopDownload()
	(addDownloadList): added
	(checkDownloadList): added
	(convert_size3): added
	(DownloadListBuffer): added
	(download_action): added
	(stopDownload): added
	(ldDL): added
* proto.h (ldDL): added
	(convert_size): added
	(convert_size2): added
	(doFileCopy): deleted
	(_doFileCopy): added
	(addDownloadList): added
	(stopDownload): added
	(checkDownloadList): added
	(download_action): added
* url.c (openURL): save url in uf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15 15:19:43 +00:00
Fumitoshi UKAI
ccd60ac7b7 [w3m-dev 03430] disable display of alarm command
* main.c (SigAlarm): remove display_message_nsec()
	(setAlarm): show sec
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-14 17:01:25 +00:00
Fumitoshi UKAI
2d7016bfb0 NEWS: env,rc: https_proxy
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-14 16:58:28 +00:00
Fumitoshi UKAI
41139c1337 [w3m-dev 03429] https proxy
* fm.h (HTTPS_proxy): added
	(HTTPS_proxy_parsed): added
* main.c (main): check https_proxy
* rc.c (CMT_HTTPS_PROXY): added
	(https_proxy): added
	(parse_proxy): HTTPS_proxy
* url.c (openURL): for HTTPS, use HTTPS_proxy
	(schemeToProxy): HTTPS_proxy_parsed
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-14 16:56:22 +00:00
Fumitoshi UKAI
5dee213f2e [w3m-dev 03428] install manual as w3m.exe.1 on Cygwin
* XMakefile (MAN1_TARGET): added
	(HELP_TARGET): added
	(install): use MAN1_TARGET, HELP_TARGET
	(uninstall): use MAN1_TARGET, uninstall HELP_TARGET
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-13 15:53:44 +00:00
Fumitoshi UKAI
57d097cd93 [w3m-dev 03427] Re: Select the nearest map area as default.
* map.c (newMapArea): accept sign chars
		if points is not enough, return as SHAPE_UNKNOWN
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-13 15:51:39 +00:00
Fumitoshi UKAI
a632426d3c [w3m-dev 03425] charset of title
* display.c (displayBuffer): buffername converted to system coding
				for term title
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-13 15:49:00 +00:00
Fumitoshi UKAI
f15e6e885c [w3m-dev 03424] Content length
* file.c (loadGeneralFile): current_content_length before do_download
	(save2tmp): current_content_length move before return
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-13 15:47:12 +00:00
Fumitoshi UKAI
3a0ae78f81 [w3m-dev 03422] Re: setting form on loading
* form.c (loadPreForm): initialize name
		check textarea, name for /textarea
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-12 13:06:14 +00:00
Fumitoshi UKAI
9517adaad9 [w3m-dev 03418] Re: tab browser
* display.c (redrawNLine): s/clrtoeol/clrtoeolx/
			move rootY
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-12 12:46:53 +00:00
Fumitoshi UKAI
b1b21ada7a [w3m-dev 03417] install_w3mimgdisplay
* configure: define install_w3mimgdisplay
		after use_w3mimg_fb determined
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-12 12:44:49 +00:00
Fumitoshi UKAI
54fd2d7e83 fix indent 2002-11-12 12:42:50 +00:00
Fumitoshi UKAI
467a5e015b [w3m-dev 03415] fix a build issue for 64bit arch
* gcmain.c: deleted
* main.c: no need gcmain.c
	s/MAIN/main/
* mktable.c: ditto
* w3mbookmark.c: ditto
* w3mhelperpanel.c: ditto
From: Akira TAGOH <at@gclab.org>
2002-11-12 12:41:57 +00:00
Fumitoshi UKAI
00df4c68e6 * doc/w3m.1: update
* doc-jp/w3m.1: update
* NEWS: update: -show-option
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-12 12:36:30 +00:00
Fumitoshi UKAI
714821b9d1 [w3m-dev 03414] Re: show parameter
* main.c (fusage): add -show-option
	(MAIN): check -show-option
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-12 12:24:44 +00:00
Fumitoshi UKAI
2d785076fc [w3m-dev 03413] Re: setting form on loading
* form.c (loadPreForm): add textarea
	(preFormUpdateBuffer): submit if value is matched as well
			case FORM_TEXTAREA
			case FORM_SELECT ifdef MENU_SELECT
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-12 12:22:59 +00:00
Fumitoshi UKAI
2741efbe2c [w3m-dev 03411] do AUXBIN_TARGETS
* scripts/Makefile (all): add AUXBIN_TARGETS
		(clean): add AUXBIN_TARGETS
From: Yuji Abe <cbo46560@pop12.odn.ne.jp>
2002-11-12 12:18:29 +00:00
Fumitoshi UKAI
7e6c94ea23 [w3m-dev 03408] edit From in w3mail.cgi
* scripts/w3mmail.cgi.in: edit from as well
From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-11-11 15:50:28 +00:00
Fumitoshi UKAI
d4b7c51b76 [w3m-dev 03408] fix Bug#87472: MOUSE_SCROLL_LINE should be a run-time option
* fm.h (relative_wheel_scroll): added
	(fixed_wheel_scroll_count): added
	(relative_wheel_scroll_ratio): added
* main.c (mouse_scroll_line): added
	(process_mouse): s/MOUSE_SCROLL_LINE/mouse_scroll_line()/
* menu.c (MOUSE_SCROLL_LINE): deleted
* terms.h (MOUSE_SCROLL_LINE): deleted
* rc.c (CMT_RELATIVE_WHEEL_SCROLL): added
	(CMT_RELATIVE_WHEEL_SCROLL_RATIO): added
	(CMT_FIXED_WHEEL_SCROLL_COUNT): added
	(wheelmode): added
	(params3): add relative_wheel_scroll,
			relative_wheel_scroll_ratio,
			fixed_wheel_scroll_count
From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-11-11 15:33:28 +00:00
Fumitoshi UKAI
ca91822bb6 [w3m-dev 03407] char GlobalKeymap -> unsigned char GlobalKeymap
* fm.h (GlobalKeymap): char->unsigned char
	(EscKeymap): ditto
	(EscBKeymap): ditto
	(EscDKeymap): ditto
	(PcKeymap): ditto
* keybind.c: ditto
* keybind_lynx.c: ditto
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-11 15:22:37 +00:00
Fumitoshi UKAI
8f129fd737 [w3m-dev 03406]
* scripts/Makefile: add AUXBIN_DIR
		update LIB_DIR, HELP_DIR
		xface2xpm installed in AUXBIN_DIR
* scripts/multipart/Makefile: update LIB_DIR
* scripts/w3mman/Makefile: update LIB_DIR
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-11 15:19:49 +00:00
Fumitoshi UKAI
df6ec62bf2 [w3m-dev 03405] Re: tab browser
* main.c (moveTab): B_FORCE_REDRAW
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-11 15:16:37 +00:00
Fumitoshi UKAI
45480db6f7 close Bug#96349 2002-11-11 15:14:54 +00:00
Fumitoshi UKAI
b9be47c6d5 [w3m-dev 03401] w3mhelp.cgi
* proto.h (tabMn): nulcmd ifndef USE_MENU
* scripts/w3mhelp-funcdesc.en.pl.in: add LINEEDIT:EDITOR
* scripts/w3mhelp-funcdesc.ja.pl.in: add LINEEDIT:EDITOR
				Tab operation
* scripts/w3mhelp-funcname.pl.in: add LINEEDIT:EDITOR C-o
* scripts/w3mhelp.cgi.in: add tabA in Hyperlink operation
			add tabURL, tabrURL in File/Stream operation
			add Tab operation
			add lineedit_editor in Line edit mode
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-10 11:59:15 +00:00
Fumitoshi UKAI
3198a2ba23 [w3m-dev 03399]
* XMakefile: ;; -> ;
From: NOMIYA Masaru <nomiya@ttmy.ne.jp>
2002-11-10 11:42:12 +00:00
Fumitoshi UKAI
d7ed8ae7d7 [w3m-dev 03398] auxbindir
* XMakefile: EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS
* config.h.dist: add AUXBIN_DIR
		LIB_DIR is cgi-bin
* configure: add -auxbindir
		add AUXBIN_DIR
		LIB_DIR is cgi-bin
		EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS
* file.c (compression_decoder): libfile_p -> auxbin_p
	(check_command): libfile_p -> auxbin_p
			use w3m_auxbin_dir() instead of w3m_lib_dir()
	(acceptableEncoding): libfile_p -> auxbin_p
	(xface2xpm): use auxbinFile() instead of libFile()
	(uncompress_stream): libfile_p -> auxbin_p
			use auxbinFile() instead of libFile()
* image.c (getCharSize): use w3m_auxbin_dir() instead of w3m_lib_dir()
	(openImgdisplay): use w3m_auxbin_dir() instead of w3m_lib_dir()
* indep.c (w3m_auxbin_dir): added
* indep.h (w3m_auxbin_dir): added
* proto.h (auxbinFile): added
* rc.c (auxbinFile): added
	(libFile): #if 0, no longer used
	(helpFile): used only #ifndef USE_HELP_CGI
* NEWS: separate auxbindir and libdir (local-CGI, file:///$LIB/)
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-09 21:55:24 +00:00
Fumitoshi UKAI
f5c7af1d39 [w3m-dev 03396] Re: meta refresh problem
* main.c (MAIN): AL_IMPLICIT -> alarm_status
	(SigAlarm): AL_IMPLICIT -> alarm_status
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 17:32:50 +00:00
Fumitoshi UKAI
fe0784be6f fix indent 2002-11-08 16:11:49 +00:00
Fumitoshi UKAI
88a72cc0e5 [w3m-dev 03391] use editor when input at last line
* linein.c (_editor): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 16:09:58 +00:00
Fumitoshi UKAI
e3eca6c348 update TODO 2002-11-08 16:08:06 +00:00
Fumitoshi UKAI
ca5ffe8720 [w3m-dev 03390] some fixes related with form
* form.c (input_textarea): goto input_end
		unlink(tmpf);
* main.c (_followForm): s/TEXT/Password/
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 16:07:03 +00:00
Fumitoshi UKAI
46a41a06e8 update TODO 2002-11-08 16:06:51 +00:00
Fumitoshi UKAI
7748f7d2c3 [w3m-dev 03388] meta refresh problem
* fm.h (AL_IMPLICIT_DONE): 3->4
	(AL_ONCE): 8
	(AL_IMPLICIT_ONCE): (AL_IMPLICIT|AL_ONCE)
* main.c (MAIN): & AL_IMPLICIT, & AL_IMPLICIT_DONE
	(SigAlarm): & AL_IMPLICIT, & AL_IMPLICIT_DONE, & AL_ONCE
	(setAlaramEvent): & AL_IMPLICIT
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 16:01:18 +00:00
Fumitoshi UKAI
885e5cad27 [w3m-dev 03387] Re: tab browser
* buffer.c (newBuffer): buf->LINES initialize
	(gotoLine): use buf->LINES
	(gotoRealLine): use buf->LINES
* display.c (displayBuffer): check by buf->LINES
	(redrawNLine): buf->LINES
	(redrawLine): buf->LINES
	(redrawLineImage): no need buf->rootY
	(cursorDown): buf->LINES
	(arrangeCursor): buf->LINES
* etc.c (columnSkip): buf->LINES
	(lineSkip): buf->LINES
	(currentLineSkip): buf->LINES
* fm.h (Buffer): add LINES
* main.c (nscroll): Currentbuf->LINES
	(pgFore): Currentbuf->LINES
	(pgBack): Currentbuf->LINES
	(ctrCsrV): Currentbuf->LINES
	(movD): Currentbuf->LINES
	(movU): Currentbuf->LINES
	(_goLine): Currentbuf->LINES
	(drawAnchorCursor): Currentbuf->LINES
	(setOpt): B_REDRAW_IMAGE
	(newT): B_REDRAW_IMAGE
	(closeT): B_REDRAW_IMAGE
	(nextT): B_REDRAW_IMAGE
	(prevT): B_REDRAW_IMAGE
	(moveTab): B_NORMAL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 15:54:46 +00:00
Fumitoshi UKAI
9f17edac44 [w3m-dev 03386] Re: Interrupt in no_proxy_check()
* file.c (getAuthCookie): term_cbreak()
	(loadGeneralFile): term_cbreak()
			term_raw()
			preFormUpdateBuffer() before term_raw()
	(loadHTMLstream): term_raw()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-08 15:46:05 +00:00
Fumitoshi UKAI
88bd152f50 update TODO 2002-11-06 15:13:54 +00:00
Fumitoshi UKAI
b94f22ff24 [w3m-dev 03385] install-sh typo
* install-sh: s/'/"/
From: Katsumi@yamaoka.cc
2002-11-06 15:09:16 +00:00
Fumitoshi UKAI
9dfa6e334a [w3m-dev 03383] Select the nearest map area as default.
* fm.h (MapArea): add center_x, center_y
* map.c (nearestMapArea): added
	(follow_map_menu): initial by nearestMapArea()
	(newMapArea): set center_x, center_y
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06 15:07:40 +00:00
Fumitoshi UKAI
278ef389e1 fix indent 2002-11-06 15:05:34 +00:00
Fumitoshi UKAI
bcb1de20e2 [w3m-dev 03382] Interrupt in no_proxy_check()
* url.c (check_no_proxy): SIGINT trap by KeyAbort
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06 15:03:25 +00:00
Fumitoshi UKAI
fcf7c4af06 [w3m-dev 03380] fix configure
* configure: s/INSTALL_W3MIMGDISPLAY/install_w3mimgdisplay/
		already define
* config.h.dist (INSTALL_W3MIMGDISPLAY): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06 14:58:02 +00:00
Fumitoshi UKAI
3d14e2fe4e w3mimgdisplay setuid done 2002-11-06 05:13:05 +00:00
Fumitoshi UKAI
eee9736e27 [w3m-dev 03379] setuid w3mimgdisplay and check console tty
* XMakefile: w3mimgdisplay install by INSTALL_W3MIMGDISPLAY
* configure: ask setuid w3mimgdisplay
	(w3mimgdisplay_setuid): added
	(INSTALL_W3MIMGDISPLAY): added
* etc.c (mySystem): close until FOPEN_MAX
* image.c (openImgdisplay): setenv W3M_TTY
		stderr to /dev/null
		close until FOPEN_MAX
* install-sh: -o, -g for owner, group
* proto.h (ttyname_tty): added
* search.c (open_migemo): stderr to /dev/null
		close until FOPEN_MAX
* terms.c (ttyname_tty): added
* w3mimgdisplay.c: include <sys/types.h>, <unistd.h>
		W3MIMGDISPLAY_SETUID
		stderr to /dev/null
* w3mimg/w3mimg.c: include <sys/types.h>, <unistd.h>
		W3MIMGDISPLAY_SETUID
* w3mimg/fb/fb_w3mimg.c (check_tty_console): added
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-06 03:50:48 +00:00
Fumitoshi UKAI
91b3b8a09b [w3m-dev 03377] sync_with_option
* etc.c (loadPassword): reset passwords
* form.c (loadPreForm): reset PreForm
* main.c (option_assigned): deleted
	(parse_proxy): deleted
	(MAIN): move initCookie(), setLocalCookie()
		  after sync_with_option()
		delete parseURL for *_proxy
		s/WrapSearch/WrapDefault/
		move initKeymap(), initMenu() after setupscreen()
		sync_with_option() after init_rc()
* rc.c (pre_form_file): move in params9 (network settting)
	(sync_with_option): initKeymap(), initMenu() is done
			if fmInitialized
	(init_rc): delete sync_with_option()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06 03:26:56 +00:00
Fumitoshi UKAI
8503b2be4e [w3m-dev 03375] NULL check of CurrentTab
* display.c (disp_message_nsec): check CurrentTab
* file.c (doExternal): check CurrentTab
* image.c (loadImage): check CurrentTab
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06 03:19:30 +00:00