Commit Graph

51 Commits

Author SHA1 Message Date
bptato
c5cd2b5716 sixel and osc5379 image display protocols can be chosen in options 2021-02-02 15:06:53 +01:00
Parag Nemade
f1fd7215d2 Fix FTBFS due to redefinition of sys_errlist
Origin: 99f30870ca
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1038009
Bug-MacPorts: https://trac.macports.org/ticket/61356
2020-11-22 21:13:27 +09:00
bptato
99aa56a75c Removed an unnecessary variable declaration 2020-08-31 19:00:17 +02:00
bptato
9916eadf24 New commands for moving to the top, middle and bottom of buffer 2020-08-31 18:02:07 +02:00
Roland Illig
ced87de02c Fix -Wchar-subscripts
Origin: http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/www/w3m/patches/patch-main.c?rev=1.1&content-type=text/plain
Bug: https://sourceforge.net/p/w3m/patches/76/
2020-03-27 20:58:22 +09:00
We're Yet
3f15e127d2 Add command to go home.
When w3m is launched, if no other options are specified, it attempts to
read HTTP_HOME and WWW_HOME from the environment and upon finding a
value for one of these load the url specified.  Once launched, though,
w3m provides no convenience for navigating to the home page.

Here, that ability is added.  A new command GOTO_HOME is defined with a
default key binding of C-_.
2020-01-03 23:42:05 -08:00
Laurent Arnoud
b06d1f6a02 Allow to override UserAgent
Adding on command line the user agent add a duplicate header:

```
./w3m -header "User-Agent: Mozilla" http://localhost:9999

GET / HTTP/1.0
User-Agent: w3m/0.5.3+git20190105
Accept: text/html, text/*;q=0.5, image/*, application/*, message/*, x-scheme-handler/*, audio/*, video/*, inode/*
Accept-Encoding: gzip, compress, bzip, bzip2, deflate
Accept-Language: en;q=1.0
Host: localhost:9999
Pragma: no-cache
Cache-control: no-cache
User-Agent: Mozilla
```

As a result most server will take the first given; the default
w3m_version or the one defined on config `user_agent`

With this patch we can now override `User-Agent` from command line
2019-04-21 21:47:52 +02:00
Tatsuya Kinoshita
18dcbadf27 Make temporary directory safely when ~/.w3m is unwritable 2018-01-21 10:34:11 +09:00
Tatsuya Kinoshita
1fd08f383d Typo fix in fusage()
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878106
2017-12-27 06:42:26 +09:00
Tatsuya Kinoshita
ace7655fa9 English fix
cf. [emacs-w3m:12706], http://emacs-w3m.namazu.org/ml/msg12598.html
2017-12-27 06:41:57 +09:00
ITOH Yasufumi
73d015d4bb Fix suspend (^Z) behavior.
Suspend the job w3m belongs to, not w3m only.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2016-11-06 20:29:04 +01:00
Tatsuya Kinoshita
920d56e3f0 Update description of SOURCE and VIEW 2016-06-19 18:36:51 +09:00
Tatsuya Kinoshita
a4031dbd75 Update English messages 2016-06-19 14:19:19 +09:00
Justin B Rye
f4885d0838 English fixes
cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772341#15
Origin: https://lists.debian.org/debian-l10n-english/2014/12/msg00002.html
Origin: https://lists.debian.org/debian-l10n-english/2014/12/msg00030.html
Origin: https://lists.debian.org/debian-l10n-english/2015/02/msg00011.html
2016-04-02 06:51:06 +09:00
Tatsuya Kinoshita
06181fceff Add extbrowser4, extbrowser5, ..., and extbrowser9 2016-03-13 20:06:18 +09:00
Tatsuya Kinoshita
ff21632495 Typo fix for ACCESSKEY
cf. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779092#5
2016-02-28 08:48:56 +09:00
David Crosby
fc5b50353e Adjust while loop 2015-08-11 21:59:27 +09:00
David Crosby
a00c90930b use int for c 2015-08-11 21:59:27 +09:00
David Crosby
7e5b33c30e Remove dead assignments flagged by Clang static analysis 2015-08-11 21:59:27 +09:00
IWAMOTO Kouichi
dd054480d7 Fix that SGR style mouse handler has off-by-one problem
cf. https://github.com/tats/w3m/issues/5
Origin: https://gist.github.com/ttdoda/30c189a63d483beeb207
Bug: https://sourceforge.net/p/w3m/patches/65/
2015-08-05 06:35:09 +09:00
Tatsuya Kinoshita
928af643ca Correct GC version confirmation 2015-05-03 11:44:14 +09:00
yshl
70334e3605 correct GC version confirmation 2015-05-02 10:42:35 +09:00
yshl
e0641028c7 for gc-7.1 2015-04-26 18:38:08 +09:00
Tatsuya Kinoshita
ee0405c689 Drop C99 features 2015-01-15 20:50:16 +09:00
Scarlett
cbec7032ee Add overflow detection
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* main.c: Call exit(1) when out of memory to avoid dereferencing null
pointers when gc's malloc fails.

* alloc.h: Replacements for w3m's allocation macros which add
overflow detection and concentrate the macros in one file.

* indep.h, libwc/charset.c, libwc/status.c, matrix.c: Use the
overflow-detecting allocation macros from alloc.h.
2015-01-15 19:38:11 +09:00
Scarlett
ec8272d8fe Correct printf arguments and use asprintf
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2

* Str.c: Use asprintf() instead of rolling our own printf string
length detection.

* cookie.c: Pass the char pointer in the string struct to printf %s
instead of the string struct itself.
Print time_t using %lld instead of %ld to allow for 64-bit time_t.

* main.c: Print a long int using the correct format specifier.

* map.c: Print size_t using the correct format specifier.
2015-01-15 18:58:35 +09:00
Araki Ken
4459dbe26e img2sixel exits by Ctrl+C. Enable GIF Animation if 'I' is pressed to show it. 2014-12-06 20:47:05 +09:00
Araki Ken
2fe66f3a6f Add -sixel option which supports image processing by img2sixel. 2014-12-06 20:47:05 +09:00
Araki Ken
f4268d8d18 Support remote image by OSC 5379 show_picture sequence. 2014-12-06 20:47:04 +09:00
Tatsuya Kinoshita
411555fd5c Merge branch 'bug/gc72' 2014-08-22 20:58:03 +09:00
Micah Cowan
770eec8304 Support Boehm GC 7.2
Replace Gentoo's patch to prevent segfaults due to infinite recursion.

Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=080_gc72.patch;att=1;bug=758831
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758831
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=555467
Bug: http://sourceforge.net/p/w3m/patches/63/
Bug: http://sourceforge.net/p/w3m/patches/59/
2014-08-22 20:45:50 +09:00
Tatsuya Kinoshita
f721415154 Revert "Support Boehm GC 7.2" (w3m-0.5.2-gc72.patch from Gentoo)
This reverts commit 4331db3e3e.
2014-08-22 20:42:59 +09:00
Tatsuya Kinoshita
c1c4d3aa83 Merge branch 'bug/search-next' 2013-12-07 10:34:11 +09:00
AIDA Shinra
b5641f56ce Fix crash after SEARCH_NEXT
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-search-next.patch>,
[w3m-dev:04473] on 2013-12-07.
2013-12-07 10:32:58 +09:00
Tatsuya Kinoshita
f7ff70f6da Merge branch 'bug/win64gc'
Conflicts:
	istream.c
	main.c
2013-10-14 23:02:26 +09:00
AIDA Shinra
ec81194f38 Workaround of GC crash on Cygwin64
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>,
[w3m-dev:04469] on 2013-10-14.
2013-10-14 22:31:01 +09:00
Tatsuya Kinoshita
0b8986e820 Merge branch 'feature/vim-like' 2013-10-12 19:59:25 +09:00
Laurence Richert
3864447c90 vim/-perator like handling
- half page scrolling
- jumping to elements numbered by getLinkNumberStr() from Karsten
  Schoelzel
2013-10-12 19:57:35 +09:00
Tatsuya Kinoshita
62aafb2e9b Merge branch 'bug/execdict' 2013-08-04 11:55:09 +09:00
Tatsuya Kinoshita
0c6b7c5e06 Fix potentially segfault of execdict() 2013-08-04 11:54:23 +09:00
Tatsuya Kinoshita
18b0cc756b Merge branch 'master' into bug/sort-dump-links
Conflicts:
	main.c
2013-07-30 20:13:51 +09:00
Tatsuya Kinoshita
b61a08fc64 Sort anchors by sequence number in -dump
Patch from <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657666>,
provided by Conrad J.C. Hughes.
2013-07-30 20:09:33 +09:00
Tatsuya Kinoshita
fa5bc4b95d Merge branch 'feature/siteconf' 2013-04-08 21:56:59 +09:00
Tatsuya Kinoshita
f1d51e933e Merge branch 'feature/sgrmouse' 2013-04-08 21:56:49 +09:00
Tatsuya Kinoshita
a32bf68c85 Support the siteconf feature
Patch to support the siteconf feature, from [w3m-dev 04463]
on 2012-06-27, provided by AIDA Shinra.
2013-04-08 21:48:49 +09:00
Tatsuya Kinoshita
a342af3d63 Support SGR 1006 mouse reporting
Patch to support SGR 1006 mouse reporting, from [w3m-dev 04466]
on 2012-07-15, provided by Hayaki Saito.
2013-04-08 21:36:33 +09:00
Tatsuya Kinoshita
4331db3e3e Support Boehm GC 7.2
Patch from Gentoo <http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-client/w3m/files/w3m-0.5.2-gc72.patch?revision=1.1&view=markup>.
2012-05-03 19:29:59 +09:00
Tatsuya Kinoshita
11d366f99d Change the -s option to "squeeze multiple blank lines" for pager
Change the -s option from "display charset Shift_JIS" to "squeeze multiple
blank lines" to work as /usr/bin/pager.  In addition, the options -j and -e
are disabled.  To specify the display charset, use -O{s|j|e} instead.

The patch was committed to the upstream on 2000-10-27.  However, it was
rejected because of Debian specific on 2010-08-03.
2011-06-19 20:44:24 +09:00
Tatsuya Kinoshita
5397d09e58 Adding upstream version 0.5.3 2011-05-04 16:41:45 +09:00
Tatsuya Kinoshita
6db339b3d7 Adding upstream version 0.5.2 2011-05-04 16:23:02 +09:00