Commit Graph

50 Commits

Author SHA1 Message Date
Tatsuya Kinoshita
2061fbfbc5 Do not expand config value of tmp_dir 2023-01-12 21:53:31 +09:00
Tatsuya Kinoshita
9a33001df0 Use faccessat for rc_dir and tmp_dir 2023-01-12 20:41:23 +09:00
Tatsuya Kinoshita
d4e14f1b09 Call wtf_init in sync_with_option 2023-01-12 20:34:01 +09:00
Tatsuya Kinoshita
5ffce08c61 Avoid modifying read-only rc_dir 2023-01-12 19:39:10 +09:00
Tatsuya Kinoshita
c9cbe79a61 Make tmp_dir if not found 2023-01-12 19:33:19 +09:00
Tatsuya Kinoshita
b0940e8cec English fixes
cf. https://github.com/tats/w3m/pull/241
2023-01-04 19:18:46 +09:00
Tatsuya Kinoshita
d86a975061 Merge pull request #255 from rkta/fix_GH_action
Don't error out on deprecated declaration warnings
2023-01-04 19:17:29 +09:00
Tatsuya Kinoshita
57b6c8ecd1 Merge pull request #251 from nsanmartin/high-intensity-colors
Add high-intensity colors option and cli flag.
2023-01-04 19:16:58 +09:00
Rene Kita
7078c78443 Remove unused variable 2022-12-25 11:55:58 +01:00
Tatsuya Kinoshita
989b788269 Merge pull request #234 from N-R-K/testing
Fix -Wmissing-prototypes and -Wstrict-prototypes warnings
2022-12-25 10:05:43 +09:00
Tatsuya Kinoshita
dff69f1281 Merge pull request #219 from rkta/add_option_for_temp_files
Add option to set directory for temporary files
2022-12-21 20:20:27 +09:00
nico
4922d25917 Add high-intensity colors option and cli flag. 2022-11-19 13:39:15 -03:00
Yash Lala
4c8f4f6cd9 Use Strnew_charp() to create char * instead of strdup(). 2022-06-03 17:04:07 -07:00
Yash Lala
f812275fe6 refactor: Substitute some clunky code with a strdup(). 2022-06-02 17:47:05 -07:00
Rene Kita
9192ed59db Add option to set directory for temporary files
With this patch applied the user can configure a directory to store
temporary/cache files. The history and cookies remain in RC_DIR.

I suppose the intent of writing the history to a temp file first is to
make the actual write an atomic operation. As rename() does not work
across mount points, we need to handle the temp file for the history
different to keep this behaviour.

Add a new type for the temp history file and handle this case different
when creating a temp file.
2022-05-01 11:50:09 +02:00
NRK
faeebc076c fix all -Wmissing-prototypes warnings 2022-04-29 15:59:13 +06:00
NRK
d9284b1193 fix some -Wstrict-prototypes warnings 2022-04-29 15:59:13 +06:00
Yash Lala
26284ff627 Set rc_dir based on W3M_DIR environment variable.
By default, w3m puts all of its data in the `~/.w3m/` directory
(creating it as necessary). This was not configurable in any way.

This commit adds some quick reconfigurability -- when the "W3M_DIR"
environment variable is set, w3m will use that location instead. The
default location is unchanged.

Fixes #130.
2022-01-14 11:06:46 -08:00
Tatsuya Kinoshita
c3784c9d26 New option disable_center to disable center alignment
Bug-Debian: https://github.com/tats/w3m/issues/175
Bug-Debian: https://github.com/tats/w3m/issues/185
2021-07-03 15:00:18 +09:00
Tatsuya Kinoshita
17a3df7440 New option localhost_only to restrict connections only to localhost
Bug-Debian: https://github.com/tats/w3m/issues/117
2021-04-17 17:42:01 +09:00
Tatsuya Kinoshita
22d33dc8c9 New option cross_origin_referer to use origin only Referer 2021-04-10 22:29:18 +09:00
Tatsuya Kinoshita
c4f588fbb7 New option ssl_ca_default to explicitly use OpenSSL default paths 2021-02-28 18:35:42 +09:00
bptato
081f42e35c Convert images to PNG for kitty with ImageMagick 2021-02-19 23:48:52 +01:00
bptato
3304675aff Support kitty image protocol 2021-02-18 19:18:06 +01:00
Tatsuya Kinoshita
fb9f1c0356 Update ssl_min_version to accept "all" and reject "SSLv2" 2021-02-11 19:37:17 +09:00
Tatsuya Kinoshita
4f4d692321 New option ssl_min_version for OpenSSL 1.1 2021-02-10 21:51:44 +09:00
Tatsuya Kinoshita
c01675d342 New option ssl_cipher to specify ciphers for TLSv1.2 and below 2021-02-10 20:01:56 +09:00
Tatsuya Kinoshita
a9d8858809 Update option setting strings for inline image display method 2021-02-06 13:09:29 +09:00
bptato
61b5182dbd Clarify inline image setting's wording 2021-02-06 00:18:29 +01:00
bptato
e4570e8b6e Support iTerm2 graphics protocol, replace encodeB with base64_encode 2021-02-02 22:14:46 +01:00
bptato
f88e49826d Avoid having external programs download images 2021-02-02 16:40:27 +01:00
bptato
c5cd2b5716 sixel and osc5379 image display protocols can be chosen in options 2021-02-02 15:06:53 +01:00
bptato
75c54da6ba Space is now entered in URL fields instead of triggering file completion, old behavior can be toggled via options 2020-09-01 20:48:04 +02:00
Tatsuya Kinoshita
82869f4acb Update documents for ssl_forbid_method 2020-03-11 20:11:18 +09:00
Azure
83e072d6d5 Allow setting User Agent in Siteconf
Since Google gives usable search results to Lynx but not to w3m, and
many other sites block Lynx but /not/ w3m, we want to be able to set
the User Agent string on a per-site basis.
2019-06-30 12:15:22 -04:00
Tatsuya Kinoshita
18dcbadf27 Make temporary directory safely when ~/.w3m is unwritable 2018-01-21 10:34:11 +09:00
Tatsuya Kinoshita
b592dac63b Suppress error messages when ~/.w3m is unwritable
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871425
2018-01-21 10:33:40 +09:00
Tatsuya Kinoshita
762e28dc89 Fix multi-character character constant for ssl_forbid_method 2018-01-06 19:49:57 +09:00
se
1b23ebf644 Extend ssl_forbid_method to disable TLSv1.1
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874218#5
2018-01-06 19:10:52 +09:00
Tatsuya Kinoshita
c010dd7a6b Fix reverse ordered config parameters 2016-03-20 19:23:39 +09:00
Tatsuya Kinoshita
71421d977c Update PO strings for extbrowser2..9 2016-03-14 19:54:54 +09:00
Tatsuya Kinoshita
06181fceff Add extbrowser4, extbrowser5, ..., and extbrowser9 2016-03-13 20:06:18 +09:00
David Crosby
7e5b33c30e Remove dead assignments flagged by Clang static analysis 2015-08-11 21:59:27 +09:00
Richard Quirk
f3c14dfe6b Avoid passing null to strlen 2015-07-25 14:53:22 +02:00
Tatsuya Kinoshita
abb41b0812 Update PO strings for display_borders 2015-04-29 16:39:49 +09:00
Tatsuya Kinoshita
0efbaf15c3 New option "display_borders" to display 0 pixel table borders.
cf. http://d.hatena.ne.jp/rubikitch/20101120
2015-02-02 23:09:34 +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
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
Tatsuya Kinoshita
72f72d64a4 Adding upstream version 0.5.1 2011-05-04 16:05:14 +09:00