Tatsuya Kinoshita
ffc254ab38
Merge branch 'bug/alloc'
2015-01-15 20:52:51 +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
Tatsuya Kinoshita
fde71b37d2
Merge branch 'bug/printf'
2015-01-15 19:14:08 +09:00
Tatsuya Kinoshita
5e9545756b
Do not use C99 printf format specifiers and asprintf
2015-01-15 19:13:51 +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
Tatsuya Kinoshita
dae53252fb
Merge branch 'bug/changelog'
2014-12-10 00:24:08 +09:00
Tatsuya Kinoshita
1f9ea2a559
Update ChangeLog
2014-12-10 00:23:19 +09:00
Tatsuya Kinoshita
b86f4cfe83
Merge branch 'feature/remoteimg'
2014-12-06 20:51:51 +09:00
Araki Ken
2e8def7ab6
Add README.sixel. W3M_IMG2SIXEL environmental variable enables to specify options of img2sixel.
2014-12-06 20:47:05 +09:00
Araki Ken
982a8feab0
* Add n_terminal_image argument to put_image_{sixel|osc5379}(). * Use struct winsize to calculate ppc and ppl.
2014-12-06 20:47:05 +09:00
Araki Ken
f64d6bb899
If SCREEN_VARIANT=sixel on GNU screen, exec img2sixel without -P option.
2014-12-06 20:47:05 +09:00
Araki Ken
df84882eb3
ttymode_set() -> ttymode_reset().
2014-12-06 20:47:05 +09:00
Araki Ken
78ae4478df
Fix.
2014-12-06 20:47:05 +09:00
Araki Ken
3f3906151b
Support GNU screen.
2014-12-06 20:47:05 +09:00
Araki Ken
0c25fd96f7
Show GIF (except animation GIF) correctly.
2014-12-06 20:47:05 +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
75e89acd80
Add declaration of get_pixel_per_cell().
2014-12-06 20:47:05 +09:00
Araki Ken
4a9c976e32
Show the first frame of animation gif files.
2014-12-06 20:47:05 +09:00
Araki Ken
e8b2d47358
system() -> fork()&execvp()
2014-12-06 20:47:05 +09:00
Araki Ken
1eabd79f5b
Draw underline on anchor which contains cboth text and images.
2014-12-06 20:47:05 +09:00
Araki Ken
09ececc3b7
Remove close_tty() from setup_child() because close_tty() sometimes interrupts loadGeneralFile() in loadImage() and corrupt image data can be cached in ~/.w3m.
2014-12-06 20:47:05 +09:00
Araki Ken
622bdafb59
Minor fix.
2014-12-06 20:47:05 +09:00
Araki Ken
de942f3abf
Cache image files if at all possible and convert them to sixel when -sixel option is specified.
2014-12-06 20:47:05 +09:00
Araki Ken
9504d18d0a
Init pixel_per_{char|line}_i if get_pixel_per_cell() fails.
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
98b4d10ce4
Don't download image files whose size is specified in <img> tag.
2014-12-06 20:47:04 +09:00
Araki Ken
08811e76fd
Minor fixes of parseImageHeader().
2014-12-06 20:47:04 +09:00
Araki Ken
e6856f2329
Determine the format of an image file by its header data not by its file name suffix.
2014-12-06 20:47:04 +09:00
Araki Ken
0c0d4b5f38
Read width and height from jpeg, png and gif files directly instead of executing w3mimgdisplay -size.
2014-12-06 20:47:04 +09:00
Araki Ken
0d99209d9f
* display.c: Draw underline on anchor text which is not overlapped with any image.
2014-12-06 20:47:04 +09:00
Araki Ken
f941b1d562
* terms.c: Clear fd_set by FD_ZERO() before select().
2014-12-06 20:47:04 +09:00
Araki Ken
0640eca05c
* file.c: nw and ni are rounded up instead of rounded off to show every corner of images.
2014-12-06 20:47:04 +09:00
Araki Ken
a95a178971
* terms.c: Change time to wait for the response of "\x1b[14t\x1b[18t" from 0.1 sec to 0.5 sec.
...
* image.c:
- clearImage() works.
- Use cached image files created by w3m in getImage().
* file.c: Hack for alignment.
2014-12-06 20:47:04 +09:00
Araki Ken
147ef0048b
- Adjust the image size to the terminal cell size. - If the image size is specified in html source, skip to load the image.
2014-12-06 20:47:04 +09:00
Araki Ken
f4268d8d18
Support remote image by OSC 5379 show_picture sequence.
2014-12-06 20:47:04 +09:00
Tatsuya Kinoshita
6ef08c68f1
Merge branch 'bug/parsetagx-crash'
2014-12-06 19:01:47 +09:00
Olaf Hering
608828ed7e
Fix crash in parse_tag() during every start
...
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-parsetagx-crash.patch?expand=1
2014-12-06 19:01:13 +09:00
Tatsuya Kinoshita
e479f83b19
Merge branch 'bug/no-ascii-default'
2014-12-06 18:01:17 +09:00
Olaf Hering
6e73bad0ff
Change the default to alt_entity=0
...
change the default for the option "Use ASCII equivalents to
display entities" from YES to NO.
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-0.5.1-no-ASCII-equivalents-by-default.patch?expand=1
Bug-Novell: https://bugzilla.novell.com/show_bug.cgi?id=247397
2014-12-06 18:00:05 +09:00
Tatsuya Kinoshita
0552b86da6
Merge branch 'bug/uninitialized'
2014-12-06 17:19:46 +09:00
Olaf Hering
fc754b42ec
Fix a few harmless uninitialized variables
...
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-uninitialized.patch?expand=1
2014-12-06 17:18:49 +09:00
Tatsuya Kinoshita
a1b70ec952
Merge branch 'bug/textarea-segfault'
2014-12-06 16:51:54 +09:00
Peter Poeml
c6f15256e9
Prevent segfault when editing a textarea field with vi
...
add fix for segfault that can occur when editing a textarea field
with vi, and returning to w3m (it seems to happen if the terminal
is not writable, as when using w3m after 'su - some_user')
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-0.4.1-textarea-segfault.dif?expand=1
2014-12-06 16:50:16 +09:00
Tatsuya Kinoshita
fcc18b1367
Merge branch 'feature/w3m-img-freebsd'
2014-12-04 00:32:32 +09:00
Tatsuya Kinoshita
afdbf8abec
Follow updated configure
2014-12-04 00:31:40 +09:00
Tatsuya Kinoshita
9f938c4cdf
Merge branch 'feature/w3m-img-freebsd'
2014-12-03 23:29:02 +09:00
Yusuke Baba
416d70d11e
Support FreeBSD framebuffer
...
Origin: http://www.ac.auone-net.jp/~baba/w3m-img/index.html
Bug-FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=122673
2014-12-03 22:29:39 +09:00
Tatsuya Kinoshita
eeea7ba4fe
Merge branch 'bug/gdk-pixbuf'
2014-12-02 00:23:54 +09:00
Naohiro Aota
385ae3366f
Depend on gdk-pixbuf instead of gtk when gtk2
...
Origin: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/www-client/w3m/files/w3m-0.5.3-gdk-pixbuf.patch?revision=1.1
2014-12-02 00:23:10 +09:00