1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00
Commit Graph

275 Commits

Author SHA1 Message Date
Witold Filipczyk
447c452339 [download] No need to double check 2023-12-28 13:03:45 +01:00
Witold Filipczyk
fd5e164b8f [download] memory leaks 2023-12-28 13:01:01 +01:00
Witold Filipczyk
bb137d12e9 [download] download.cpp -> download.c
elinks's hash instead of C++ map.
2023-11-26 19:09:19 +01:00
Witold Filipczyk
1219e479b5 [session] session.cpp -> session.c 2023-11-25 18:15:24 +01:00
Witold Filipczyk
d606aca351 [terminal] terminal.cpp -> terminal.c
hash from util instead of C++ map
2023-11-25 18:08:46 +01: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
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
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
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
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
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
c8e0dd9e47 [remote] Now addBookmark takes two parameters URL and title. Refs #227
title must be passed without quotes. Example:
elinks --remote 'addBookmark(https://www.example.com/forum, Forum Example)'

Implementation note: uri->post was reused and is title here.
2023-04-30 20:14:33 +02:00
Witold Filipczyk
54f1426e43 [status] Introduced print_screen_status_delayed.
For cases when status is updated often. For example
uploads or downloads.
2023-01-18 21:35:50 +01:00
Witold Filipczyk
7ea7cacade [.config] Read/write configuration from ~/.config/elinks . Refs #199
Note, configs and other files from ~/.elinks/ are not moved
to ~/.config/elinks/ automatically. You must do it yourself.

ELINKS_CONFDIR and HOME_ETC also are no longer supported.
2022-12-26 17:48:55 +01:00
Witold Filipczyk
af7bed47e6 [download] refresh_dialog in display_download
Results are promising, lower CPU usage while displaying
download info dialog. Need to check bittorrent.
2022-12-15 19:40:12 +01:00
Witold Filipczyk
361b8f661d [long] long -> intptr_t . Refs #8304
AFAIK on Windows long is sizeof 4, while void * is sizeof 8.
intptr_t is the same sizeof as void *.
2022-08-17 20:48:58 +02:00
Witold Filipczyk
172c32a64c [cpp] All files suspected for any C++ relation renamed to cpp
Now (in meson) .c files are compiled by C compiler and .cpp by C++ compiler.
2022-07-31 16:44:11 +02:00
Witold Filipczyk
307be32113 [ecmascript] draw_formatted(..., 3) in doc_rerender_after_document_update.
Previously, in document_replace wrong length was passed to add_fragment.
Now, I guess is correct, and testing arithmetics works for me.
2022-07-13 19:10:54 +02:00
Witold Filipczyk
0db5bb7764 [clipboard] Moved function to session, to easier testing. 2022-06-05 15:25:42 +02:00
Witold Filipczyk
ca7b6ca959 [session] Maybe I'm wrong, but two draw_formatted in a row are not necessary. 2022-05-25 20:17:40 +02:00
Unknown
0d60536a09 [ javascript ] rerender core dumps fix 2022-05-25 19:53:33 +02:00
Witold Filipczyk
443d42608d [dgi] Experimental DGI support.
Dos Gateway Interface was introduced by Arachne browser.
I tested two cases:
file/cdplayer.dgi   |[7]$ecdplayer.exe $s
application/pdf pdf>txt|$epdftotext $1 $2
2022-05-21 18:18:55 +02:00
Witold Filipczyk
61dab79139 [download] explicit cast to (char *) instead of macro 2022-03-04 20:59:46 +01:00
Witold Filipczyk
f0d1a425a7 [session] const in ses_find_frame 2022-02-25 20:29:32 +01:00
Witold Filipczyk
7fa9c6f7d9 [download] const description and desc_sep 2022-02-21 18:54:55 +01:00
Witold Filipczyk
4846a04751 [download] explicit cast to (char *) 2022-02-21 18:51:10 +01:00
Witold Filipczyk
1672e75bd2 [download] cast to char * 2022-02-21 18:41:01 +01:00
Witold Filipczyk
f97d3e6164 [session] const in goto_url_with_hook 2022-02-21 18:34:06 +01:00
Witold Filipczyk
0c367b33db [session] changed declaration of handler 2022-02-21 16:09:58 +01:00
Witold Filipczyk
6ee1349dfb [session] const in request_additional_file 2022-02-10 19:52:24 +01:00
Witold Filipczyk
4118a4dfc5 [session] Removed dummy=1 2022-02-10 19:43:29 +01:00
Witold Filipczyk
11b4d40212 [download] const type 2022-01-31 17:49:13 +01:00
Witold Filipczyk
5ef839cf18 [term] enum term_env_type -> term_env_type_T 2022-01-28 17:37:43 +01:00
Witold Filipczyk
44f0adb1cb [cache] enum cache_mode -> cache_mode_T 2022-01-28 17:32:27 +01:00
Witold Filipczyk
2b9f3d5cf9 [download] enum download_flags -> download_flags_T 2022-01-28 17:26:15 +01:00
Witold Filipczyk
ec6cfcaf22 [network] enum connection_priority -> connection_priority_T 2022-01-28 16:22:03 +01:00
Witold Filipczyk
4c159b33cf [session] enum remote_session_flags -> remote_session_flags_T 2022-01-28 14:51:37 +01:00
Witold Filipczyk
20aea2ceaf [session] cast 2022-01-26 17:51:52 +01:00
Witold Filipczyk
881f896e85 [mem_calloc] Cast 2022-01-16 21:08:50 +01:00
Witold Filipczyk
20c161559c [mem_alloc] cast return value 2022-01-16 19:09:27 +01:00
Witold Filipczyk
a3eb8a369d [uri] Silly change to static char[] instead const char * to avoid warning 2022-01-15 19:08:39 +01:00
Witold Filipczyk
c56f0c5e98 [uri] URI_HOST_PORT 2022-01-15 18:28:46 +01:00
Witold Filipczyk
0e8ee7876a [uri] 0 -> URI_NONE in get_uri to decrease number of warnings 2022-01-14 20:52:17 +01:00
Witold Filipczyk
57c996c383 [dom] compilation fixes 2021-12-08 17:17:50 +01:00
Witold Filipczyk
7b2179be1f [status] window_status unconditional. Refs #128 2021-09-22 15:01:52 +02:00
Witold Filipczyk
66305fcb50 [gettext] try system gettext. Refs #62
Now, only meson was changed.
-Dnls=true -Dgettext=true
2021-08-08 21:25:08 +02:00