1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00
Commit Graph

5058 Commits

Author SHA1 Message Date
Witold Filipczyk
8d93489933 [curl] Download resume for http 2023-11-16 16:24:08 +01:00
Witold Filipczyk
1ff535370e [curl] Added download resume for curl's ftp 2023-11-16 16:08:29 +01:00
Witold Filipczyk
ec9708a87e [document] init_string(&document->text) 2023-11-11 16:34:12 +01:00
Witold Filipczyk
ef1569e24c [dos] Check env CURL_CA_BUNDLE also for non-curl code path 2023-11-10 09:39:59 +01:00
Witold Filipczyk
a76aa91566 [win32] style 2023-11-08 17:33:06 +01:00
Witold Filipczyk
98a9cbf2b7 [windows] handle terminal resize, based on links2 code 2023-11-08 17:29:58 +01:00
Witold Filipczyk
c4add15307 [curl] Check CURL_CA_BUNDLE also for ftps 2023-11-08 13:39:26 +01:00
Witold Filipczyk
388db93244 [curl] Check enviroment variable CURL_CA_BUNDLE 2023-11-08 13:09:57 +01:00
Witold Filipczyk
1042755f7f [windows] Less number of warnings 2023-11-08 12:28:00 +01:00
Witold Filipczyk
3aed9a8fda [lua] compilation fix for Windows
There is no sigsetjmp function on mingw64.
2023-11-08 09:08:54 +01:00
Witold Filipczyk
8164715d0f [select] SOCK_SHIFT for curl under Windows 2023-11-06 19:04:14 +01:00
Witold Filipczyk
d6f7e86623 [windows] build static 2023-11-04 22:02:12 +01:00
Witold Filipczyk
decdfa853c [windows] Compilation fixes 2023-11-04 20:30:25 +01:00
Witold Filipczyk
eba67dc278 [dos] CONFIG_ECMASCRIPT -> CONFIG_QUICKJS
mujs also can be compiled, and does not have check_heartbeats.
2023-11-01 17:19:09 +01:00
Witold Filipczyk
2ac5d5c0b9 [quickjs] Do not include <uchar.h> 2023-10-29 18:37:07 +01:00
Witold Filipczyk
33d119ba2f [memcount] More mem_alloc and mem_free 2023-10-27 21:15:52 +02:00
Witold Filipczyk
d5dc632443 [mujs] memcount mem_realloc and mem_free for mujs
Also commented code in mujs_element_init. It caused only a memory leak.
2023-10-27 20:37:50 +02:00
Witold Filipczyk
263a06396d [document] Free previous document->title if was set 2023-10-27 16:54:18 +02:00
Witold Filipczyk
a476ddd419 [memcount] mem_alloc for quickjs 2023-10-27 11:16:24 +02:00
Witold Filipczyk
10667d2437 [memcount] mem_alloc and others for curl 2023-10-27 11:07:05 +02:00
Witold Filipczyk
3834c52686 [zstd] Added memcount (only for statically linked zstd) 2023-10-26 18:17:16 +02:00
Witold Filipczyk
17b288c935 [spidermonkey] ref_count in heartbeat 2023-10-25 21:09:25 +02:00
Witold Filipczyk
d5787d46b4 [quickjs] reference count in heartbeat.c 2023-10-25 20:59:55 +02:00
Witold Filipczyk
6629f34466 [memcount] CONFIG_DEBUG inside memcount.h 2023-10-25 17:17:08 +02:00
Witold Filipczyk
0b4007fd7e [quickjs] memcount 2023-10-25 17:10:59 +02:00
Witold Filipczyk
dae67eee8a [mujs] Added info when CONFIG_DEBUG 2023-10-24 19:37:16 +02:00
rkd77
a9ea05f0de
Merge pull request #269 from balducci/master
make it build when CONFIG_ECMASCRIPT is undefined
2023-10-24 18:43:41 +02:00
Witold Filipczyk
5d750958dd [info] used times -> calls 2023-10-24 18:38:04 +02:00
gabriele balducci
1112827be6 make it build when CONFIG_ECMASCRIPT is undefined 2023-10-24 18:00:11 +01:59
Witold Filipczyk
1145193290 [curl] Added info about allocations in CONFIG_DEBUG 2023-10-24 17:39:26 +02:00
Witold Filipczyk
007fef1d6c [forms] Temporarily comment assertion 2023-10-24 12:34:27 +02:00
Witold Filipczyk
aeeceaaf83 [ecmascript] mem_calloc instead of calloc 2023-10-24 12:28:00 +02:00
Witold Filipczyk
c753c75f94 [po] New lines at the end of text are "forbidden". 2023-10-24 11:03:52 +02:00
Witold Filipczyk
2c47b22bc4 [libsixel] memcount 2023-10-23 21:54:29 +02:00
Witold Filipczyk
f55e9dd33e [brotli] Added debug info 2023-10-23 20:12:38 +02:00
Witold Filipczyk
a2ae13cf06 [debug] Show info about gzip allocations
Number of callocs from the begining.
Number of active allocations.
Total size of active allocations.
2023-10-23 19:06:21 +02:00
Witold Filipczyk
7185d705de [debug] compilation fixes for -Dwithdebug=true 2023-10-23 15:56:53 +02:00
Witold Filipczyk
f12134c2cf [libdom] unlock cached 2023-10-20 18:04:48 +02:00
Witold Filipczyk
9fc4d8022d [ecmascript] unlock previously locked document 2023-10-20 18:02:41 +02:00
Witold Filipczyk
19cb86aeff [mujs] skip reusing of elements 2023-10-20 16:38:09 +02:00
Witold Filipczyk
9563fef842 [document] check also doc_view->vs 2023-10-20 13:44:41 +02:00
Witold Filipczyk
bc302f11d2 [ecmascript] Refresh frames 2023-10-19 19:16:08 +02:00
Witold Filipczyk
b931536fc3 [mujs] Define location in window.c 2023-10-19 18:03:53 +02:00
Witold Filipczyk
ba33d709de [document] sort links after rewrite of document 2023-10-18 16:34:18 +02:00
Witold Filipczyk
bc597e2b61 [mujs] Alias Date.prototype.toGMTString -> Date.prototype.toUTCString 2023-10-18 16:33:14 +02:00
Witold Filipczyk
ad077babc4 [mujs] Do not enable strict mode 2023-10-18 15:54:15 +02:00
Witold Filipczyk
1a25f30831 [mujs] Slightly modified way of defining window object 2023-10-18 15:23:36 +02:00
Witold Filipczyk
9504926c6b [frames] Do not free doc_view, when toggle html -> plain
I know it is not correct, but at least does not crash.
2023-10-15 16:06:53 +02:00
Witold Filipczyk
ddbc49b6b3 [http] Added REFERER to curl 2023-10-06 15:12:29 +02:00
Witold Filipczyk
2c978637f0 [curl] send_cookies 2023-10-06 14:58:04 +02:00
Witold Filipczyk
235d998a6a [ecmascript] scroll again
scroll3.html works if started as the first page.
2023-10-05 16:42:53 +02:00
Witold Filipczyk
17fecb2aad [spidermonkey] element.checked 2023-10-04 20:54:39 +02:00
Witold Filipczyk
ebae7f3927 [mujs] element.checked 2023-10-04 20:40:55 +02:00
Witold Filipczyk
c56d925ce2 [quickjs] element.checked 2023-10-04 20:32:05 +02:00
Witold Filipczyk
789be0be41 [session] Set referrer based on ses->doc_view not current_frame 2023-09-29 20:18:27 +02:00
Witold Filipczyk
8596d604cc [dom] rewrite cache 2023-09-29 18:51:58 +02:00
Witold Filipczyk
3b233ba711 [libcss] this assertion fails 2023-09-29 17:15:12 +02:00
Witold Filipczyk
5d01bbb05d [spidermonkey] compilation fixes 2023-09-29 16:46:44 +02:00
Witold Filipczyk
7fc8c2088f [document] format_cache implemented as std::list
Slower, but works for my testcase.
2023-09-28 19:44:09 +02:00
Witold Filipczyk
61466065a2 [quickjs] compilation fixes 2023-09-28 14:45:14 +02:00
Witold Filipczyk
ecff39f6c3 [js] memacpy 2023-09-28 14:37:28 +02:00
Witold Filipczyk
446f6de0e0 [quickjs] stracpy to avoid warnings 2023-09-28 14:31:10 +02:00
Witold Filipczyk
42abf0b058 [spidermonkey] clang compilation fixes 2023-09-28 13:27:31 +02:00
Witold Filipczyk
6487a287cf [document] Slightly better handling of string 2023-09-28 12:04:57 +02:00
Witold Filipczyk
98e72e99f3 [document] text as struct string 2023-09-28 11:54:46 +02:00
Witold Filipczyk
e80a2f7014 Merge branch 'master' into router 2023-09-28 10:40:45 +02:00
hedy
7266ac4cbd
[gemini] Use paragraph tags on gemtext empty lines
This patch makes paragraphs separated by an empty new line appear after
an empty new line when rendered in elinks.

Previously, for a gemtext source that looks like this:

    First para
    Second line

    Second para

It renders like this:

    First para
    Second line
    Second para

After this patch, they now render like this:

    First para
    Second line

    Second para

Unfortunately this also adds a </p> to the start of the HTML, as well as
a <p> at the end, both redundant; but since the HTML is parsed and
rendered later on, it does not seem to alter how the document would
look.

    </p><p> First para <br> Second line </p><p> Second para </p><p>

I could possibly add a `first_paragraph` variable and a `i !=
buffer->length` check to remove the first </p> and last <p> in the HTML,
making the HTML source "prettier". But I don't believe that would be too
beneficial, considering the performance tradeoff in executing these two
extra checks for each empty new line encountered.

For testing please see: gemini://hedy.tilde.cafe/tmp/paragraphs.gmi
2023-09-28 15:48:59 +08:00
Witold Filipczyk
5483782949 [session] load_common as separate function
Call it instead of display_timer in delayed_reload
2023-09-27 17:14:01 +02:00
Witold Filipczyk
5175ecd2b7 [libcss] gray75 as default color for text 2023-09-27 10:47:04 +02:00
Witold Filipczyk
a645856fac [libcss] color must be set
Otherwise valgrind shows uninitialized value.
2023-09-26 19:44:34 +02:00
Witold Filipczyk
c3c80cb952 [libdom] cast 2023-09-26 19:38:08 +02:00
Witold Filipczyk
5e5d7f702a [options] Moved was_xml_parsed below framename
Also call display_timer. For framesets
2023-09-26 16:58:13 +02:00
Witold Filipczyk
637bcb725c [quickjs] location 2023-09-25 14:35:53 +02:00
Witold Filipczyk
c9359669bd [spidermonkey] getLocation
Both:
location = url;
location.href = url;
should work.
2023-09-25 13:46:18 +02:00
Witold Filipczyk
4375984708 [js] Distinguish between document.write(ln) and other modifications
Reparse document only for document.write(ln).
2023-09-25 10:52:19 +02:00
Witold Filipczyk
15da44d9ea [libdom] reparse document, when it was modified by js 2023-09-24 17:56:58 +02:00
Witold Filipczyk
78543c55ee [table] skip_script 2023-09-24 17:56:06 +02:00
Witold Filipczyk
81b89946e6 [cookies] dl=0 ok 2023-09-24 10:27:29 +02:00
Witold Filipczyk
773ac97e1b [libdom] For parsed document separate function: dump_xhtml 2023-09-23 19:28:28 +02:00
Witold Filipczyk
b3e77ef53e [js] document is already parsed. No need to check 2023-09-23 18:58:21 +02:00
Witold Filipczyk
1b9983c543 [mujs] element.value 2023-09-22 21:04:24 +02:00
Witold Filipczyk
a6a7345701 [quickjs] element.value 2023-09-22 20:54:24 +02:00
Witold Filipczyk
6ce64c1894 [spidermonkey] element.value 2023-09-22 20:40:19 +02:00
Witold Filipczyk
f461c86ce6 [document] Added body_onkeypress
It is silly, but I want some scripts to work.
2023-09-22 16:37:53 +02:00
Witold Filipczyk
9ca95e1ffe [js] ENTER has code 13 2023-09-21 19:35:52 +02:00
Witold Filipczyk
fb1c70564e [mujs] window.event 2023-09-21 19:06:52 +02:00
Witold Filipczyk
ced7b7b294 [quickjs] window.event 2023-09-21 17:59:47 +02:00
Witold Filipczyk
a9b8dca965 [spidermonkey] window.event 2023-09-21 17:38:56 +02:00
Witold Filipczyk
447aa41dc9 [js] placeholder for onkeypress 2023-09-21 09:30:50 +02:00
Witold Filipczyk
5dc2187450 [libdom] Do not rewrite < and > in scripts 2023-09-20 18:46:38 +02:00
Witold Filipczyk
b0127bec3b [js] unused variable 2023-09-19 21:02:44 +02:00
Witold Filipczyk
4d8de245ad [spidermonkey] element.style (setter) 2023-09-19 20:59:35 +02:00
Witold Filipczyk
b434875c52 [quickjs] element.style (setter) 2023-09-19 20:40:03 +02:00
Witold Filipczyk
6fb1360c01 [mujs] element.style (setter) 2023-09-19 20:19:21 +02:00
Witold Filipczyk
0b7caf4e82 [spidermonkey] element.style (getter) 2023-09-19 17:29:08 +02:00
Witold Filipczyk
b34d1b6b60 [quickjs] element.style (getter) 2023-09-19 16:48:16 +02:00
Witold Filipczyk
e2ea308100 [mujs] element.style (getter) 2023-09-19 16:04:39 +02:00
Witold Filipczyk
79bfb0bc4a [br] Shorter code 2023-09-14 17:57:56 +02:00
Witold Filipczyk
5fbfacbab6 [xhtml] Special case for BR. Refs #266
Rewrite is as <BR/> instead of <BR></BR>.
2023-09-14 17:40:27 +02:00
Witold Filipczyk
c603fe4058 [libdom] convert back < to &lt; and > to &gt; Refs #266 2023-09-13 21:38:40 +02:00
Witold Filipczyk
b8a1b1e01f [spidermonkey] init string () not {} 2023-09-12 18:21:49 +02:00
Witold Filipczyk
843af9e300 [c++] initialize string with () not {}. Refs #253 2023-09-12 18:01:19 +02:00
Witold Filipczyk
aca4e7e517 [mujs] Typo 2023-09-12 17:28:26 +02:00
Witold Filipczyk
929ff93cca [curl] Build fix 2023-09-12 16:56:36 +02:00
Witold Filipczyk
c3eae90ce9 [clang] Compilation fixes 2023-09-12 16:41:09 +02:00
Witold Filipczyk
7cf2be2db7 [spidermonkey] Declare str earlier 2023-09-12 15:41:42 +02:00
Witold Filipczyk
80e2b6b812 [quickjs] compilation fix 2023-09-12 15:39:26 +02:00
Witold Filipczyk
496bfcea60 [mujs] Compilation fix? Refs #253 2023-09-12 15:37:10 +02:00
Witold Filipczyk
e0a125f112 [gmi] Add a new line after the first line of "preformatted" text. Refs #265 2023-09-12 10:23:26 +02:00
Witold Filipczyk
e5ad52fc57 [gemini] Off by one? Refs #264 2023-09-12 09:58:59 +02:00
Witold Filipczyk
47c59125f4 [quickjs] element.blur() 2023-09-11 19:11:16 +02:00
Witold Filipczyk
dd66c07a8c [mujs] element.blur() 2023-09-11 19:07:51 +02:00
Witold Filipczyk
92d8883722 [spidermonkey] element.blur() 2023-09-11 19:03:53 +02:00
Witold Filipczyk
c80dcd4e89 [spidermonkey] element.click() 2023-09-11 18:58:29 +02:00
Witold Filipczyk
d7255e44d9 [mujs] element.click() 2023-09-11 18:52:14 +02:00
Witold Filipczyk
d12919cabd [quickjs] element.click() 2023-09-11 18:46:21 +02:00
Witold Filipczyk
b19e783a4f [quickjs] Duplicated condition 2023-09-11 16:33:19 +02:00
Witold Filipczyk
37c6e34cf2 [file] Focus on .. in file directory listing. Refs #253
Requires js.
2023-09-11 16:29:52 +02:00
Witold Filipczyk
35fbd3e87e [quickjs] element.focus() 2023-09-11 16:17:14 +02:00
Witold Filipczyk
a2df98a769 [mujs] element.focus() 2023-09-11 16:01:37 +02:00
Witold Filipczyk
188f63941c [spidermonkey] element.focus() 2023-09-11 15:48:18 +02:00
Witold Filipczyk
e2e7b7332e [libdom] Added map (node -> element_offset) 2023-09-11 14:59:05 +02:00
Witold Filipczyk
207dc70c87 [libcss] Set status = 0 for color. 2023-08-26 09:10:03 +02:00
Witold Filipczyk
abf035f21f [libcss] Do not set black as default color 2023-08-26 09:04:44 +02:00
Witold Filipczyk
80a33fd3ea [css] line-through 2023-08-25 20:53:26 +02:00
Witold Filipczyk
524b4e0469 [terminfo] strike 2023-08-25 20:23:01 +02:00
Witold Filipczyk
c9fd41588f [terminal] Strikethrough for <STRIKE> element 2023-08-25 20:10:54 +02:00
Witold Filipczyk
33731cf82c [terminal] Do not count non-existent temporary files
Weird names were counted on slave terminals, but files
were not created.
2023-08-22 17:19:11 +02:00
Witold Filipczyk
43f970d1f4 [data] Added image/jxl as well. Refs #261 2023-08-22 08:25:07 +02:00
Witold Filipczyk
365f1075b8 [data] string parameter was not used 2023-08-21 16:18:09 +02:00
Witold Filipczyk
9820cefba6 [data] Add extension .svg for image/svg+xml . Refs #261
The first idea was to add a function for mapping content-type -> extension,
but this change is only one line of code.
2023-08-21 14:36:23 +02:00
Witold Filipczyk
664b85418e [menu] Added "Remove temporary files" menu entry. 2023-08-11 16:06:05 +02:00
Witold Filipczyk
f351f66f84 [info] Show number of temporary files 2023-08-11 15:51:36 +02:00
Witold Filipczyk
bbb18c506a [temp] Shorter for loop 2023-08-11 14:57:14 +02:00
Witold Filipczyk
9d42b1dda0 [images] Check for file readability, but also free memory. Refs #257 2023-08-11 14:09:29 +02:00
Witold Filipczyk
82431263ed [images] check if temporary file is readable. Refs #257 2023-08-11 13:52:41 +02:00
Witold Filipczyk
cce12632c2 [images] Save in cache only if ui.sessions.postpone_unlink is set. Refs #257 2023-08-11 13:29:55 +02:00
Witold Filipczyk
acbc574b4b [images] Store in map url -> filename for images and others. Refs #257 2023-08-11 13:24:10 +02:00
Witold Filipczyk
7e8ffa940c [images] download.c -> download.cpp 2023-08-11 12:28:35 +02:00
Witold Filipczyk
a3605dfe50 [images] C++ map instead of linked list for temporary files 2023-08-11 12:15:40 +02:00
Witold Filipczyk
bd8b3f590c [view] Added option "ui.sessions.postpone_unlink" . Refs #257
This option let clean files after exit of elinks, not immediately.
2023-08-10 12:22:11 +02:00
Witold Filipczyk
ce5cec35c5 [config] no-home did not work 2023-08-08 14:23:14 +02:00
Witold Filipczyk
2ab64d4a12 [redraw] Terminals are redrawn similar to links, but for downloads install timer. Refs #258
When download dialog is shown, redraw_all_terminals is limited to 20 fps.
At least in theory.
2023-08-08 13:12:15 +02:00
Witold Filipczyk
03ad2b8c2e [utf] Own definition of isspace. Refs #249 2023-07-31 23:36:02 +02:00
Witold Filipczyk
4ef70a1cfa [libdom] scan_http_equiv in libdom renderer. Refs #249 2023-07-27 13:30:42 +02:00
Witold Filipczyk
450eda0283 [html] Check encoding line ( <?xml version="1.0" encoding="utf-8"?> ) 2023-07-27 11:41:43 +02:00
Witold Filipczyk
90d4f17031 [head] addcrlf 2023-07-27 11:20:53 +02:00
Witold Filipczyk
3923ae6d64 [curl] include sys/cdefs.h for __STRING 2023-07-25 16:14:14 +02:00
Witold Filipczyk
c09b5da405 [curl] free f when non NULL 2023-07-24 16:57:52 +02:00
Witold Filipczyk
a142489a63 [curl] multisocket action also without libevent or libev 2023-07-24 16:52:01 +02:00
Witold Filipczyk
8d6ce5895c [curl] More http codes with redirect 2023-07-23 16:09:52 +02:00
Witold Filipczyk
d4a682829a [curl] Moved getting estimated length to the headers part 2023-07-23 14:51:25 +02:00
Witold Filipczyk
26190a6a26 [curl] Moved get_cached_entry to end of headers
Headers ends by CR LF.
2023-07-22 22:02:27 +02:00
Witold Filipczyk
18ba915960 [curl] do not get_cache_entry in header phase
Sometimes plain text is displayed. I'm trying to
find out solution for it. In setup_download_handler
cached->head was NULL.
2023-07-22 21:48:02 +02:00
Witold Filipczyk
d10f1c29f9 [curl] Do not check conn->cached twice if not NULL 2023-07-22 20:37:27 +02:00
Witold Filipczyk
a89738d9fb [curl] I guess curl has own timeouts 2023-07-22 20:29:58 +02:00
Witold Filipczyk
555bb84c58 [curl] Removed weird check
I don't remember purpose of this check. Seems unneeded.
2023-07-22 14:17:20 +02:00
Witold Filipczyk
c45209729f [terminfo] Terminfo also for mono terminals 2023-07-20 12:25:41 +02:00
Witold Filipczyk
bda0a3d1b7 [xterm] Assume that if WAYLAND_DISPLAY or DISPLAY is set it must be xterm 2023-07-20 10:10:07 +02:00
Witold Filipczyk
b92d8d9e9b [colors] Back to bfbfbf as text color instead of ffffff. Refs #247 2023-07-20 08:58:08 +02:00
Witold Filipczyk
83a296234a [terminal] Added terminfo for 24 bit color
To test: Build with terminfo support and run elinks for example as:
TERM=xterm-direct elinks --terminfo 1
2023-07-19 19:00:26 +02:00
Witold Filipczyk
cbc29daab2 [html] Decrease number of line breaks for DL, OL and UL. Refs #248 2023-07-18 19:44:15 +02:00
Witold Filipczyk
e4fb9a80df [mouse] Decode ESC [ < . Refs #246
It is based on links code. Was not tested too much.
2023-07-18 17:13:58 +02:00
Witold Filipczyk
61ceecdbd8 [term] Check for XDG_SESSION_DESKTOP. Refs #246
New mouse reporting "\E [ <" is not implemented, but old type
should be sufficient. The problem is detecting xterm environment.
For detected "xterm" mouse init sequence is sent.
Added check for existence of XDG_SESSION_DESKTOP env.
2023-07-18 16:01:42 +02:00
Witold Filipczyk
87e4bfd41a [fsp2] This timer did not help 2023-07-13 17:14:00 +02:00
Witold Filipczyk
97723847f8 [curl] Show curl version in About dialog as FTPES. 2023-07-12 17:09:58 +02:00
Witold Filipczyk
edf2b4b147 [curl] 308 is redirect too. 2023-07-09 17:02:39 +02:00
Witold Filipczyk
868234cb13 [curl] Added libev code based on curl's evhiperfifo.c 2023-07-09 15:52:16 +02:00
Witold Filipczyk
0e3b868b15 [fsp2] Compilation fixes for dos 2023-07-08 09:32:39 +02:00
Witold Filipczyk
6263ba189d [dos] compilation fix 2023-07-08 09:31:30 +02:00
Witold Filipczyk
1a5f77f1f4 [curl] Compilation fixes 2023-07-08 09:30:55 +02:00
Witold Filipczyk
b5e9fa400d [fsp] Do not compile both 2023-07-08 08:50:54 +02:00
Witold Filipczyk
0e482b02da [fsp] fsp protocol support non-forking version based on fsplib
Maybe under DOS it makes sense.
It works worse than with fsplib. You can only download one file at a time.
2023-07-07 21:49:39 +02:00
Azamat H. Hackimov
393bf23a26 Fix compilation with Perl 5.38
Perl now includes own `struct object` which clashes with elinks
implementation. Renamed `struct object` to `struct elinks_object` to
avoid it.

Bug: https://bugs.gentoo.org/909042
2023-07-03 14:12:22 +03:00
Witold Filipczyk
5ca979844b [Makefiles] Added --with-libcurl configure option 2023-07-02 14:49:51 +02:00
Witold Filipczyk
f53aa94460 [time] timeval_add -> el_timeval_add
Clash with smb.
2023-07-01 19:43:03 +02:00
Witold Filipczyk
d783cf4add [string] string_replace -> el_string_replace 2023-07-01 19:40:24 +02:00
Witold Filipczyk
36b802251d [curl] Ask for password for http 2023-07-01 09:29:55 +02:00
Witold Filipczyk
9389e2f903 [curl] Send username and password in http 2023-07-01 09:07:22 +02:00
Witold Filipczyk
008eacef69 [curl] no verify 2023-06-30 16:30:44 +02:00
Witold Filipczyk
e734a41df9 [curl] Show error also for FTP 2023-06-30 16:13:00 +02:00
Witold Filipczyk
df4a2bedbf [curl] Display curl error 2023-06-30 15:57:39 +02:00
Witold Filipczyk
62c42d41e3 [curl] redirect also for 302 2023-06-29 19:52:24 +02:00
Witold Filipczyk
e3fae6e678 [curl] Added bool option "protocol.http.use_curl" 2023-06-29 16:39:17 +02:00
Witold Filipczyk
6860965646 [curl] HTTP_USERAGENT 2023-06-29 16:26:20 +02:00
Witold Filipczyk
5a697f8457 [curl] free list 2023-06-29 16:11:49 +02:00
Witold Filipczyk
cbd811b4fb [curl] http POST with file uploads, reused code from http/post.c 2023-06-29 16:03:36 +02:00
Witold Filipczyk
fc6f1278eb [curl] Try HTTP3
Does not work for me.
2023-06-29 10:46:09 +02:00
Witold Filipczyk
502d726580 [curl] plain POST (not file uploads) 2023-06-28 16:45:38 +02:00
Witold Filipczyk
4a7cfb8778 Merge branch 'master' into http2 2023-06-28 12:40:56 +02:00
Witold Filipczyk
c6dfd4a55e [test] Compilation fix 2023-06-28 12:33:25 +02:00
Witold Filipczyk
759897306d [select] Code depends on libevent and libcurl 2023-06-28 12:27:17 +02:00
Witold Filipczyk
c15dc0da66 [mailcap] Fix in test. Refs #241
mailcap test failed on s390x arch.
Better fix would require much more elinks code included in this test.
For example call to register_options(...).
2023-06-28 12:19:38 +02:00
Witold Filipczyk
3ff58b17e4 [gemini] Missing LIs. Refs #242 2023-06-27 16:06:58 +02:00
Witold Filipczyk
9bf5494a6a [curl] ACCEPT_ENCODING "" 2023-06-25 19:00:26 +02:00
Witold Filipczyk
5e35e906dc [curl] Begining of curl's http 2023-06-25 18:21:35 +02:00
Witold Filipczyk
f7bbd09c07 [view] Commented code which caused segfault
When document had no links, "move down" caused segfault.
Bad code was introduced with iframe code.
iframes are not ready yet.
2023-06-23 10:45:41 +02:00
Witold Filipczyk
54416c0fa5 [select] Removed unused code 2023-06-22 20:12:56 +02:00
Witold Filipczyk
651e4e72e8 [config] curl's ftp related code requires libevent. Refs #240
It does not compile with libev.
2023-06-22 20:07:08 +02:00
Witold Filipczyk
e69168c58a [ftp] Added bool option "protocol.ftp.use_curl" 2023-06-22 19:39:13 +02:00
Witold Filipczyk
16a3732382 [curl] Removed blocking code 2023-06-21 19:35:13 +02:00
Witold Filipczyk
e53f7d8286 [sftp] Restart connection and add / in case of error 2023-06-21 19:32:06 +02:00
Witold Filipczyk
285fe378b5 [ftpes] Non-blocking way to add '/' to directory. 2023-06-21 19:25:48 +02:00
Witold Filipczyk
5c0e8fb889 [sftp] Workaround for symlink to directory
Won't work for files with 4096 bytes size, or bigger directories.
2023-06-21 17:47:41 +02:00
Witold Filipczyk
430c3fea93 [ftpes] Check existence of file in blocking way 2023-06-21 17:24:36 +02:00
Witold Filipczyk
5fcc27867d [options] Modified description. 2023-06-20 15:44:04 +02:00
Witold Filipczyk
a98470adcb [bookmarks] Added option "document.browse.links.hierbox_goto" . Refs #237
Option is similar to "document.browse.links.target_blank".
It is for hierbox dialogs with a "Go to" button.
2023-06-20 14:40:02 +02:00
Witold Filipczyk
f85f899a7f [plain] Compilation fix. Refs #239 2023-06-20 13:58:14 +02:00
Witold Filipczyk
7a91db2f13 [select] Compilation fix 2023-06-20 13:48:27 +02:00
Witold Filipczyk
2f32ca5611 [curl] Check g.multi 2023-06-20 09:30:14 +02:00
Witold Filipczyk
a2a06df24a [curl] NOPROGRESS 2023-06-20 09:25:33 +02:00
Witold Filipczyk
853e8c544e [curl] Store estimated length for ftpes and sftp. 2023-06-20 08:51:34 +02:00
Witold Filipczyk
c3943a441f [ftp] done_ftpes function for cleanup 2023-06-19 21:50:50 +02:00
Witold Filipczyk
a67188413c [lists] LIST_HEAD -> LIST_HEAD_EL to not clash with libevent's LIST_HEAD. Also added curl implementation of ftpes and sftp
Implementation of ftpes and sftp is based on curl's hiperfifo example. It requires libevent.
ftpes only encrypts control channel. There were problems when both control and data were encrypted. It stucked on SIZE.
Only successful connections work, errors are not handled properly.
2023-06-19 18:43:53 +02:00
Witold Filipczyk
b7bb7fc403 [sftp] Copy-paste (fork and curl)
Did not test with keys. User/password works on test connection.
2023-06-17 19:06:43 +02:00
Witold Filipczyk
6b04aff968 [ftpes] Test ftpes implementation (fork and curl).
Explicit FTP over TLS. Works, but it is slow.
2023-06-17 17:48:45 +02:00
Witold Filipczyk
de285144f0 [iframes] Still not functional
There are bugs.
For example:
- frames borders are drawn in wrong place
- iframes are not "relative" to the document, they are drawn in the same position of the screen
  even when scrolling.
- some elements of screen disappear when going back
- crashes
2023-06-10 17:57:28 +02:00
Witold Filipczyk
fb4d1c9a27 [iframe] Pass document->nlinks to iframe 2023-06-04 21:18:04 +02:00
Witold Filipczyk
755b588387 [html] Assign document to html_context every time 2023-06-04 21:08:28 +02:00
Witold Filipczyk
2aa34e0f22 [iframe] do not reset current_link 2023-06-04 17:46:22 +02:00
Witold Filipczyk
cdcb32af8a [html] unused variable 2023-05-30 15:26:38 +02:00
Witold Filipczyk
cdb37b743d [libcss] No warning 2023-05-30 15:24:47 +02:00
Witold Filipczyk
4ffa019038 [libcss] memacpy to avoid warning 2023-05-29 15:27:05 +02:00
Witold Filipczyk
ba0cb07faf [html] libdom can be not compiled-in 2023-05-29 13:46:23 +02:00
Witold Filipczyk
52c61a6450 [python] Py_SetProgramName is deprecated 2023-05-29 13:23:18 +02:00
Witold Filipczyk
d6cb06f105 [html] Sites with ISO-8859-2 encoding displayed garbage. 2023-05-29 13:07:26 +02:00
Witold Filipczyk
1a05e20203 [libcss] mem_free in resolve_url 2023-05-28 20:48:26 +02:00
Witold Filipczyk
c1fc9ff532 [libcss] No need to select twice 2023-05-28 20:22:50 +02:00
Witold Filipczyk
4f2ff8536b [libcss] Bring back assert 2023-05-28 17:07:47 +02:00
Witold Filipczyk
41074ac1ca [dom] Bad function for unref caused memory leak. 2023-05-28 16:50:19 +02:00
Witold Filipczyk
df7c4c0579 [dom] Do not treat single '\n' specially 2023-05-28 15:48:14 +02:00
gabriele balducci
a96d7b3e5f Allow building with -Dlibsixel=false 2023-05-28 10:52:07 +01:59
Witold Filipczyk
1b8397892a [sixel] Added copyright info
Big code fragments were taken from libsixel.
2023-05-27 22:10:00 +02:00
Witold Filipczyk
28b5dc9456 [configure.ac] --with-libsixel 2023-05-27 22:07:11 +02:00
Witold Filipczyk
aae82861cf [sixel] Added sixel to terminal options.
To see sixel images you must:
- build elinks with -Dlibsixel=true
- set document.plain.sixel=1
- enable sixel in terminal options
- add to mailcap:
image/*; img2sixel %s; copiousoutput
or
image/*; convert %s sixel:- ; copiousoutput

and click some images on terminal which supports sixel.

While opening dialogs or menu, sixel images are not shown.
2023-05-27 21:35:31 +02:00
Witold Filipczyk
ed1afeb648 [options] Added bool option document.plain.sixel 2023-05-26 19:46:07 +02:00
Witold Filipczyk
c8f55f5df0 [document] Added cell_width and cell_height to document options 2023-05-26 19:22:56 +02:00
Witold Filipczyk
721d7795cf [sixel] Reuse allocator 2023-05-26 18:51:37 +02:00
Witold Filipczyk
c1b2b60f7c [sixel] Reuse allocator 2023-05-26 15:34:52 +02:00
Witold Filipczyk
9582f865a6 [plain] done_string(&pixels) 2023-05-26 14:41:28 +02:00
Witold Filipczyk
82d76921cd [sixel] Big memory leak 2023-05-26 13:13:00 +02:00
Witold Filipczyk
715c16f4d1 [document] delele sixel images when document done 2023-05-26 13:00:38 +02:00
Witold Filipczyk
5ecf02da29 [plain] Assume that ESC P is sufficient to detect sixel image
Imagick's convert generate some values between 'P' and 'q'.
I left it for the future to detect it properly.
2023-05-26 11:29:33 +02:00
Witold Filipczyk
a7af080101 [teminal] Added two output parameters to get_terminal_size.
cell_width and cell_height in pixels. It is a bit ugly, and not efficient.
2023-05-24 21:52:45 +02:00
Witold Filipczyk
6d44ddd892 [screen] Draw sixel images before redrawing terminal. 2023-05-24 21:14:07 +02:00
Witold Filipczyk
549034322f [sixel] Allow to scroll sixels horizontally.
It does not work. I don't get it.
2023-05-22 20:32:57 +02:00
Witold Filipczyk
3fee0b4f6a [sixel] Copied big framgents of code form libsixel.
Also hardcode 6x13 cell size. Scroll works for me.
2023-05-21 21:17:13 +02:00
Witold Filipczyk
c0a140f4f3 [sixel] Small progress.
You can see images. In ~/.mailcap:
image/*; img2sixel %s; copiousoutput
2023-05-19 21:31:51 +02:00
Witold Filipczyk
ee29a8877b [line] union in place of struct (sixel)
Chars are accessible via ch.chars not chars as before.
2023-05-18 11:12:05 +02:00
Witold Filipczyk
c1d954ab0a [document] bitifield kind in struct line.
I want to use it for sixel, but later some other kinds might be added.
2023-05-18 10:38:30 +02:00