Commit Graph

597 Commits

Author SHA1 Message Date
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
Fumitoshi UKAI
2a4e1af29c add TODO 2002-11-05 17:55:57 +00:00
Fumitoshi UKAI
bedc31f559 [w3m-dev 03374] disable_secret_security_check
* etc.c (openSecurityFile): disable_secret_security_check
* fm.h (disable_secret_security_check): added
* rc.c (CMT_DISABLE_SECRET_SECURITY_CHECK): added
	(disable_secret_security_check): added
* NEWS: rc: disable_secret_security_check
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 17:54:38 +00:00
Fumitoshi UKAI
eff86e2c6b * NEWS: update
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 17:35:09 +00:00
Fumitoshi UKAI
b3c1ec5baf * rc.c (CMT_PRE_FORM_FILE): added
(pre_form_file): added
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 17:34:29 +00:00
Fumitoshi UKAI
867dd58f4b * doc-jp/README.tab: added [w3m-dev 03372]
* doc/README.tab: brief translation
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 17:24:47 +00:00
Fumitoshi UKAI
d93f1df6c4 fix indent 2002-11-05 17:12:02 +00:00
Fumitoshi UKAI
a772c51a16 [w3m-dev 03372] tab browser
* display.c (displayBuffer): add ny
			rootY offset by tab
			tab line
	(cursorDown): offset rootY
	(arrangeCursor): offset rootY
* etc.c (columnSkip): offset rootY
	(lineSkip): offset rootY
	(currentLineSkip): offset rootY
* file.c (HTMLlineproc2body): ATTR_TARGET
* fm.h (MapArea): add target
	(Buffer): add rootY
	(TabBuffer): added
	(Currentbuf): comment out
	(Firstbuf): comment out
	(CurrentTab): added
	(FirstTab): added
	(LastTab): added
	(open_tab_blank): added
	(close_tab_back): added
	(nTab): added
	(TabCols): added
	(N_TAB): added
	(Currentbuf): CurrentTab->currentBuffer
	(Firstbuf): CurrentTab->firstBuffer
* funcname.tab (CLOSE_TAB): added
	(NEW_TAB): added
	(NEXT_TAB): added
	(PREV_TAB): added
	(TAB_GOTO): added
	(TAB_GOTO_RELATIVE): added
	(TAB_LEFT): added
	(TAB_LINK): added
	(TAB_MENU): added
	(TAB_RIGHT): added
* html.c (ALST_AREA): add ATTR_TARGET
* image.c (showImageProgress): offset rootY
* main.c (_newT): added
	(followTab): added
	(moveTab): added
	(check_target): added
	(MAIN): init tab related values
		buf => tab
	(nscroll): offset rootY
	(pgFore): offset rootY
	(pgBack): offset rootY
	(ctrCsrV): offset rootY
	(_movD): offset rootY
	(_movU): offset rootY
	(_goLine): offset rootY
	(_mark): offset rootY
	(followA): check target
	(_followForm): offset rootY
	(drawAnchorCursor0): offset rootY
	(drawAnchorCursor): offset rootY
	(backBf): check close_tab_back
	(follow_map): rewrite for tab, check target
	(posTab): added
	(process_mouse): tab operation
			offset rootY
	(deleteFiles): for all buffers in all tabs
	(newTab): added
	(newT): added
	(numTab): added
	(deleteTab): added
	(closeT): added
	(nextT): added
	(prevT): added
	(followTab): added
	(tabA): added
	(tabURL0): added
	(tabURL): added
	(tabrURL): added
	(moveTab): added
	(tabR): added
	(tabL): added
* map.c (follow_map_menu): return MapArea
	(newMapArea): add target args
* menu.c (SelTabMenu): added
	(SelTabV): added
	(initSelTabMenu): added
	(smChTab): added
	(smDelTab): added
	(MainMenuItem): add Select Tab
				on New Tab
	(popupMenu): add initSelTabMenu()
			offset rootY
	(mainMn): offset rootY
	(selMn): offset rootY
	(initSelectMenu): offset rootY
	(tabMn): added
* proto.h (newT): added
	(closeT): added
	(nextT): added
	(prevT): added
	(tabA): added
	(tabURL): added
	(tabrURL): added
	(tabR): added
	(tabL): added
	(newTab): added
	(deleteTab): added
	(follow_map_menu): return MapArea
	(newMapArea): add target arg
	(tabMn): added
* rc.c (CMT_OPEN_TAB_BLANK): added
	(CMT_CLOSE_TAB_BACK): added
	(open_tab_blank): added
	(close_tab_back): added
* doc/README.func (CLOSE_TAB): added
	(NEW_TAB): added
	(NEXT_TAB): added
	(PREV_TAB): added
	(TAB_GOTO): added
	(TAB_GOTO_RELATIVE): added
	(TAB_LEFT): added
	(TAB_LINK): added
	(TAB_MENU): added
	(TAB_RIGHT): added
* doc-jp/README.func: ditto doc/README.func
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-05 17:10:04 +00:00
Fumitoshi UKAI
98d6d29e7b fix indent 2002-11-05 16:43:09 +00:00
Fumitoshi UKAI
8f470bfe83 * doc-jp/README.pre_form: added [w3m-dev 03373]
* doc/README.pre_form: brief translation
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 16:37:36 +00:00
Fumitoshi UKAI
f23dd7b4a3 * etc.c (PASS_IS_READABLE_MSG): deleted
(FILE_IS_READABLE_MSG): added
	(openPasswdFile): deleted
	(openSecretFile): delete error_msg arg
	(loadPasswd): use openSecretFile()
* form.c (next_token): delete unused static decl
	(FILE_IS_READABLE_MSG): deleted
	(loadPreForm): no need pass error_msg
* proto.h (openSecretFile): delete error_msg arg
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-11-05 16:03:12 +00:00
Fumitoshi UKAI
825018b1ba [w3m-dev 03373] setting form on loading
* config.h.dist (PRE_FORM_FILE): added
* configure (PRE_FORM_FILE): added
* etc.c (openPasswdFile): define by openSecretFile()
	(openSecretFile): renamed, not static
* file.c (loadGeneralFile): preFOrmUpdateBuffer()
* fm.h (Buffer): add submit
	(pre_form_file): added
* form.c (struct pre_form_item): added
	(struct pre_form): added
	(next_token): added
	(PreForm): added
	(add_pre_form): added
	(add_pre_form_item): added
	(loadPreForm): added
	(preFormUpdateBuffer): added
* frame.c (renderFrame): add preFormUpdateBuffer()
* main.c (MAIN): buf->submit check
* proto.h (preFormUpdateBuffer): added
	(openSecretFile): added
	(loadPreForm): added
* rc.c (sync_with_option): add loadPreForm()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-05 15:56:11 +00:00