aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix indentFumitoshi UKAI2002-11-151-3/+2
|
* [w3m-dev 03441] charset of save fileFumitoshi UKAI2002-11-151-7/+10
| | | | | | | * file.c (_doFileCopy): use conv_from_system() (doFileSave): conv_from_system() * main.c (DownloadListBuffer): conv_from_system() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-151-3/+5
|
* [w3m-dev 03436] Check image sizeFumitoshi UKAI2002-11-151-3/+7
| | | | | | | | * file.c (process_img): check w > MAX_IMAGE_SIZE (HTMLlineproc2body): check w,h > MAX_IMAGE_SIZE * fm.h (MAX_IMAGE_SIZE): added * image.c (getImageSize): check w,h,width,height > MAX_IMAGE_SIZE From: Hiroyuki Ito <hito@crl.go.jp>
* [w3m-dev 03435] save image with SAVEFumitoshi UKAI2002-11-151-12/+10
| | | | | | | | | | | | | | | * buffer.c (discardBuffer): check image * file.c (loadImageBuffer): add st IMG_FLAG_DONE_REMOVE s/sourcefile/mailcap_source/ * fm.h (IMG_FLAG_DONT_REMOVE): added * image.c (drawImage): & IMG_FLAG_LOADED (deleteImage): & IMG_FLAG_DONT_REMOVE (showImageProgress): & IMG_FLAG_LOADED (getImage): & IMG_FLAG_LOADED (getImageSize): & IMG_FLAG_LOADED * main.c (vmSrc): delete ifdef USE_IMAGE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* fix indentFumitoshi UKAI2002-11-151-9/+9
|
* [w3m-dev 03431] save file by background processFumitoshi UKAI2002-11-151-7/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [w3m-dev 03424] Content lengthFumitoshi UKAI2002-11-131-6/+6
| | | | | | * file.c (loadGeneralFile): current_content_length before do_download (save2tmp): current_content_length move before return From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03398] auxbindirFumitoshi UKAI2002-11-091-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [w3m-dev 03386] Re: Interrupt in no_proxy_check()Fumitoshi UKAI2002-11-081-8/+13
| | | | | | | | | * 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>
* [w3m-dev 03375] NULL check of CurrentTabFumitoshi UKAI2002-11-061-2/+2
| | | | | | | * 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>
* [w3m-dev 03372] tab browserFumitoshi UKAI2002-11-051-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [w3m-dev 03373] setting form on loadingFumitoshi UKAI2002-11-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix indentFumitoshi UKAI2002-10-301-3/+2
|
* [w3m-dev 03363] refresh downloadFumitoshi UKAI2002-10-301-2/+2
| | | | | | | | | | | * file.c (HTMLtagproc1): alarm is implicit once * fm.h (AL_IMPLICIT_ONCE): added * main.c (searchKeyData): reset CurrentKeyData, CurrentCmdData (SigAlarm): CurrentCmdData is saved to data message displayed on AL_EXPLICIT clear alarm when AL_IMPLICIT_ONCE (setAlarmEvent): AL_IMPLICIT_ONCE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03359] support for http://user:pass@www.url.comFumitoshi UKAI2002-10-301-3/+2
| | | | | | | | * etc.c (find_auth_user_passwd): use ParsedURL for args use user and passwd if these are defined in ParsedURL * file.c (getAuthCookie): change find_auth_user_passwd() * proto.h (find_auth_user_passwd): change prototype From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03357] tab in <pre> in <ul>,<ol>,...Fumitoshi UKAI2002-10-301-2/+3
| | | | | * file.c (HTMLlineproc2): check indent for tabstop From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
* * [w3m-dev-en 00780] "Carlo E. Prelz" <fluido@fluido.as>Fumitoshi UKAI2002-10-251-37/+37
| | | | | | always print on screen the relative position * display.c (displayBuffer): relative position From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev-en 00777] patch to fix w3m-0.3.1 word break problemFumitoshi UKAI2002-10-251-1/+56
| | | | | | | | | | | * file.c (is_period_char): 0x203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (is_beginning_char): 0x2018 - LEFT SINGLE QUOTATION MARK 0x2039 - SINGLE LEFT-POINTING ANGLE QUOTATION MARK (is_word_char): add several chars ifndef JP_CHARSET add ':' and '*' From: Gary Johnson <garyjohn@spk.agilent.com>
* [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supportedFumitoshi UKAI2002-10-101-1/+12
| | | | | | | | | | | | | | | * file.c (HTMLtagproc1): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * html.c (TagMAP): sup, /sup, sub, /sub * html.c (HTML_SUP): added (HTML_N_SUP): added (HTML_SUB): added (HTML_N_SUB): added * table.c (feed_table_tag): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * tagtable.tab (sup): added (/sup): added (sub): added (/sub): added From: Fumitoshi UKAI <ukai@debian.or.jp>
* Re: [w3m-dev 03320] Re: PasswordsFumitoshi UKAI2002-09-281-8/+8
| | | | | | | | | | | | | * etc.c (dir_under): same path is ok * file.c (loadGeneralFile): if missing, return NULL ssl cert already checked * html.h (URLFILE): add ssl_certificate * istream.c (ssl_get_certificate): change args * istream.h (ssl_get_certificate): ditto * url.c (openSSLHandle): add p_cert ssl certificate check here (HTTPrequest): auth_cookie fix From: AIDA Shinra <aida-s@jcom.home.ne.jp>
* [w3m-dev 03318] Re: PasswordsFumitoshi UKAI2002-09-241-116/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc.c (struct auth_path): added (passwords): added (dir_under): added (add_auth_pass_entry): added (find_auth_pass_entry): added (find_auth_user_passwd): added (loadPasswd): added (find_auth): dir_under() (add_auth_cookie): check file * file.c (find_auth_user_passwd): removed (getAuthCookie): use delText() check proxy (get_auth_cookie): removed (loadGeneralFile): auth_pu * proto.h (schemeToProxy): added (get_auth_cookie): removed (loadPasswd): added (find_auth_user_passwd): added * rc.c (sync_with_option): loadPasswd() * textlist.c (delValue): added * textlist.h (delValue): added (delText): added * url.c (HTTPrequest): seen_www_auth (schemeToProxy): added From: AIDA Shinra <aida-s@jcom.home.ne.jp>
* [w3m-dev 03311] Re: PasswordsFumitoshi UKAI2002-09-111-1/+3
| | | | | | * configure (config.h): default PASSWD_FILE * fm.h (passwd_file): default PASSWD_FILE From: Yuuichi Teranishi <teranisi@gohome.org>
* if wrong password, dont read passwd_fileFumitoshi UKAI2002-09-101-2/+3
|
* fcloseFumitoshi UKAI2002-09-101-2/+3
|
* [w3m-dev 03307] add password_file supportFumitoshi UKAI2002-09-101-41/+132
| | | | | | | | * file.c (find_auth_user_passwd): added * fm.h (passwd_file): added * rc.c (CMT_PASSWDFILE): added (passwdfile): added From: Fumitoshi UKAI <ukai@debian.or.jp>
* run indentFumitoshi UKAI2002-08-271-2/+2
|
* Debian Bug#157098: wrong file presentation on large filesFumitoshi UKAI2002-08-201-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | from "Eduard Bloch" <blade@debian.org> * configure (clen_t): added (HAVE_STRTOLL): added (HAVE_STRTOQ): added (HAVE_ATOLL): added (HAVE_ATOQ): added * config.h.dist: ditto * file.c (current_content_length): s/int/clen_t/ (loadGeneralFile): s/atoi/strtoclen/ (convert_size): s/int/clen_t/ (convert_size2): s/int/clen_t/ (showProgress): s/int/clen_t/ (loadHTMLstream): s/int/clen_t/ linelen, trbyte (loadBuffer): ditto (getNextPage): s/int/clen_t/ linelen (save2tmp): s/int/clen_t/ linelen, trbye (_MoveFile): s/int/clen_t/ linelen, trbye * fm.h (_Buffer): s/int/clen_t/ linelen, trbye * ftp.c (size_int2str): s/long/clen_t/ (ex_ftpdir_name_size_date): s/long/clen_t/ * indep.c (strtoclen): added * indep.h (strtoclen): added * proto.h (showProgress): s/int/clen_t/ From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03276] compile error on EWS4800Fumitoshi UKAI2002-07-191-2/+2
| | | | | | * file.c (extract_auth_val): fix warnings * w3mimg/w3mimg.c: include <stdlib.h> From: Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
* [w3m-dev 03233] "obuf->flag |= RB_IGNORE_P" after <body> tagFumitoshi UKAI2002-06-241-2/+1
| | | | | * file.c (HTMLtagproc1): no need RB_IGNORE_P after <body> tag From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev-en 00752] Re: tab completion weirdness in w3m 0.3Fumitoshi UKAI2002-06-091-5/+9
| | | | | * file.c (doFileCopy): same fix as [w3m-dev-en 00751] From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03191] typo in file.c:extract_auth_val()?Fumitoshi UKAI2002-05-141-2/+2
| | | | | * file.c (extract_auth_val): s/177/0177/ From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03176] no Content-Type in http response headerFumitoshi UKAI2002-04-171-1/+3
| | | | | * file.c (loadGeneralFile): guess content-type from filename From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03167] xface2xbm -> xface2xpm (current imlib can't handle XBM)Fumitoshi UKAI2002-04-091-9/+11
| | | | | | | | | | | * configure: s/XFACE2XBM/XFACE2XPM/ * config.h.dist: ditto * file.c (xface2xpm): renamed from xface2xbm modified for xpm (readHeader): s/xface2xbm/xface2xpm/ * scripts/Makefile (LIB_TARGETS): s/xface2xbm/xface2xpm/ * scripts/xface2xpm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03135] commit of [w3m-dev 03006] is incomplete.Fumitoshi UKAI2002-03-191-3/+6
| | | | | | | * file.c (HTMLlineproc2body): check form_int fid attr update forms[] fix buf->formlist From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* indent fixFumitoshi UKAI2002-03-151-6/+8
|
* [w3m-dev 03132] Re: Reload imageFumitoshi UKAI2002-03-151-4/+7
| | | | | | | | | | | * file.c (loadGeneralFile): b->type = "text/html" * file.c (loadImageBuffer): comment out getImageSize() image_flag = IMG_FLAG_AUTO * file.c (openGeneralPagerBuffer): buf->type = "text/html" * frame.c (resetFrameElement): if (buf->mailcap_source) ... * frame.c (frame_download_source): if (buf->mailcap_source) ... * main.c (vwSrc): #ifdef USE_IMAGE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03129] Re: X-FaceFumitoshi UKAI2002-03-141-4/+20
| | | | | | | | | | | | | | | | * configure (use_xface): ask * fm.h (_Buffer): add header_source * buffer.c (reshapeBuffer): fix reshape when reading stdin with image fix disappearing header when reading stdin * file.c (xface2xbm): check file existence * file.c (readHeader): save to tmp file X-Face when activeImage & displayImage * main.c (dispI): comment out checking content type * main.c (stopI): ditto * scripts/xface2xbm.in: update compface URL read from file $XF write to file $XBM From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03127] X-FaceFumitoshi UKAI2002-03-131-1/+42
| | | | | | | | | | | | * NEWS: X-Face support * configure (use_xface): added * config.h.dist (USE_XFACE): added (XFACE2XBM): added * file.c (xface2xbm): added (readHeader): X-Face: handling * scripts/Makefile (LIB_TARGETS): add xface2xbm * scripts/xface2xbm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03125] w3m -m < imageFumitoshi UKAI2002-03-131-1/+10
| | | | | * file.c (openGeneralPagerBuffer): use internal viewer for -m option From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03116] Re: aligned block in <td align="center">Fumitoshi UKAI2002-03-121-1/+4
| | | | | | | | | * file.c (flushline): align if align="align" * fm.h (RB_LEFT): change value (RB_ALIGN): include RB_LEFT (RB_INTABLE): added * table.c (do_refill): obuf.flag |= RB_INTABLE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03110] Re: gopher brokenFumitoshi UKAI2002-03-111-1/+3
| | | | | * file.c (loadGeneralFile): #ifdef USE_GOPHER From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
* [w3m-dev 03106] Re: displayBufferFumitoshi UKAI2002-03-101-1/+2
| | | | | | * display.c (displayBuffer): revert previous changes * file.c (process_img): remove space in src attribute From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03095] Re: gopher brokenFumitoshi UKAI2002-03-081-4/+5
| | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGopherDir): html_quote(url_quote_conv()) From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03092] Reload imageFumitoshi UKAI2002-03-081-1/+2
| | | | | * file.c (loadImageBuffer): cache->index = 0 From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03093] Re: gopher brokenFumitoshi UKAI2002-03-081-37/+38
| | | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGopherDir): fix ->ptr q should be url_quote() * url.c (openURL): url_unquote() for gopher selector From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03090] Re: gopher brokenFumitoshi UKAI2002-03-081-51/+60
| | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGeneralFile): if loadGopherDir, type is real_type * file.c (loadGopherDir): rewrite to use loadHTMLstream() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03088] gopher brokenFumitoshi UKAI2002-03-081-2/+3
| | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (form_max): initial value should be -1 * file.c (loadGopherDir): </A> From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03084] A temporary file remains when pipe + 'v'Fumitoshi UKAI2002-03-051-12/+5
| | | | | | | | | * proto.h (saveBufferDelNum): deleted * file.c (saveBufferDelNum): deleted * file.c (saveBuffer): saveBufferDelNum() renamed * main.c (vwSrc): tmpfname() recorded as fileToDelete use saveBuffer() instead of saveBufferDelNum() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03073] frame + imageFumitoshi UKAI2002-02-281-2/+6
| | | | | | * file.c (loadGeneralFile): w3m_dump & ~DUMP_FRAME * file.c (loadImageBuffer): comment out if (frame_source) From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>