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

3099 Commits

Author SHA1 Message Date
Witold Filipczyk
f2557c9885 [python] Compilation warning 2020-08-09 19:50:19 +02:00
Witold Filipczyk
3e85e37909 [intl] width.c compilable only with CONFIG_UTF8 2020-08-09 19:46:50 +02:00
Witold Filipczyk
8b8f57ed75 [python] If page encoding is not "utf-8", encode it twice in pre_format_html_hook.
Once to utf-8 before pre_format_html_hook, and second time to the original encoding after python
script execution. I know it is inefficient, but computers are quite fast nowadays.
2020-08-09 17:45:22 +02:00
Witold Filipczyk
bec41b6e2f [clip] Page down overlaps sometimes. 2020-08-04 19:22:31 +02:00
Witold Filipczyk
964530422a [clipboard] Allow to enter the clipboard mode only with cursor routing. Refs #59 2020-08-04 16:07:19 +02:00
Witold Filipczyk
ee38fea126 [unicode] Code to calculate cell widths of unicode characters taken from konsole. Refs #60 2020-08-03 23:16:43 +02:00
Witold Filipczyk
4bdf5fbbc4 [clipboard] Fixes 2020-08-03 18:56:26 +02:00
Witold Filipczyk
effb18d31f [clipboard] Allow to change rectangle in both directions 2020-08-03 18:27:25 +02:00
Witold Filipczyk
ed93225510 [draw] Refresh all page, when clipboard buffer is drawn. 2020-08-03 17:22:21 +02:00
Felix Janda
f88e7c6081 Fix compilation with gcc-10
Fixes the errors

x86_64-pc-linux-gnu-ld: hooks.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here
x86_64-pc-linux-gnu-ld: ruby.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here

Bug: https://bugs.gentoo.org/730658
2020-08-02 17:42:47 -04:00
Witold Filipczyk
53002765c4 [clipboard] Off by one. 2020-08-02 16:24:00 +02:00
Witold Filipczyk
9fd79ec508 [clipboard] Show last line 2020-08-02 16:20:08 +02:00
Witold Filipczyk
b6ec0c64d5 [clipboard] Fixes. 2020-08-02 15:41:35 +02:00
Witold Filipczyk
6a960a9fb9 [viewer] New action mark-clipboard. Refs #10
Possibility to mark rectangle for clipboard.
User may bind keys to move-cursor-up, move-cursor-down, move-cursor-left,
move-cursor-right and mark-clipboard.
mark-clipboard is tristate.
First triggerred, it remembers left top corner of rectangle. Now you can move cursor.
Second time triggerred, remembers right bottom corner of rectangle.
Third time, it clears selection.

The copy-clipboard action was changed. Now if the clipboard rectangle is marked,
it copies this rectangle. If not, the current link.
2020-08-01 23:25:21 +02:00
Witold Filipczyk
79560c3206 [options] Changed text for ui.clipboard_file 2020-07-31 14:43:36 +02:00
Witold Filipczyk
e572578765 [clipboard] Without HAVE_ACCESS this fragment does not make sense. 2020-07-31 14:28:34 +02:00
Witold Filipczyk
911155a862 [clipboard] Added "ui.clipboard_file" to add text to the system clipboard.
ui.clipboard_file is filename of the clipboard file. This file can be a named pipe.
See contrib/clipboard/clip.sh how to set up copying to clipboard using socat and xclip.
Just run clip.sh (it will be running in a loop) before starting elinks and
set ui.clipboard_file = "~/.elinks/clipboard.fifo".
2020-07-27 22:38:54 +02:00
sgerwk
153ea907a8 also pass the uri as %u to external handlers 2020-07-25 13:29:47 +02:00
Witold Filipczyk
ed8818f4a1 [options] latin1_title is bool. 2020-07-05 12:21:22 +02:00
rkd77
e885341db1
Merge pull request #55 from guidocella/st
[config] Recognize st
2020-07-05 11:56:52 +02:00
Guido Cella
06df96c5db [config] Recognize st 2020-07-05 09:21:24 +02:00
Guido Cella
0d8d834af3 [rewrite] Update prefixes 2020-07-05 05:58:25 +02:00
Witold Filipczyk
bde596ab67 [cgi] Proper format on 32bit 2020-07-04 13:44:41 +02:00
Witold Filipczyk
397353a4dc [gnutls] connection.ssl.https_by_default also for gnutls 2020-07-04 13:35:29 +02:00
Guido Cella
a26c5956f4 [ssl] Let requests default to https 2020-06-25 10:40:59 +02:00
sgerwk
85cb50c7e2 fix previous commit 2020-06-24 19:22:21 +02:00
sgerwk
0e820ad3cd do not enable mouse from keyboard initialization if mouse is disabled 2020-06-24 17:38:50 +02:00
Witold Filipczyk
e94a912f1e [style] spaces -> tab 2020-06-05 18:07:45 +02:00
sgerwk
76a973e902 show an alert when the search string is not found 2020-06-05 14:13:37 +02:00
Witold Filipczyk
66c476a754 [mouse] Initialization of variable was not necessary. 2020-05-26 21:36:46 +02:00
Witold Filipczyk
8ba7176f81 [cookies] Slightly modified path.c 2020-05-26 20:47:31 +02:00
sgerwk
bb66fd3c37 config option for disabling the mouse 2020-05-26 00:29:57 +02:00
Witold Filipczyk
c56d11cfb9 [main] Fixed issue with scripting and fork_on_start 2020-05-22 21:52:36 +02:00
Witold Filipczyk
9e71d7f3c8 [scripting] lua_rawlen. Refs #46 2020-05-22 20:46:35 +02:00
Witold Filipczyk
2dcac411a8 [sessions] New option ui.sessions.fork_on_start
Default value of this bool option is 0. Nothing changes in behaviour since 0.13.1.
If you set it to 1, one more process will be started. This main process will handle
only interlink connections, while other processes will be slaves to it.
This will allow to exit first started elinks session without breaking others.
2020-05-21 16:53:43 +02:00
Witold Filipczyk
033f15fe7b [session] Shorter 2020-05-20 20:38:39 +02:00
Witold Filipczyk
2273c4a370 [session] Because all terminals are slaves, choose first session for remote. 2020-05-20 19:05:58 +02:00
Witold Filipczyk
f89b26d5b2 [interlink] Fixed elinks -remote 'ping()' 2020-05-20 18:35:40 +02:00
Witold Filipczyk
08138487a0 [interlink] Test commit. All terminals - slaves.
Before when master terminal quit session, all slave terminal stopped to work.
There is a workaround. ELinks on master terminal forks on start and becomes slave.
2020-05-17 16:35:58 +02:00
Witold Filipczyk
ca71978c81 [config] Shorter summary 2020-05-13 21:10:16 +02:00
Witold Filipczyk
60f6c35a2c [config] Config option "ui.tostop" . Refs #45
ui.tostop decides whether to stop background processes trying to write
to the terminal. Default enabled.
2020-05-13 20:51:37 +02:00
Witold Filipczyk
df3a79bed5 Revert "[terminal] Try to fix #45 as suggested by Debian user"
This reverts commit a3e84e27c7.
2020-05-13 20:33:00 +02:00
Witold Filipczyk
16bb37b84f [cookies] Missing file 2020-05-10 21:49:39 +02:00
Witold Filipczyk
a3e84e27c7 [terminal] Try to fix #45 as suggested by Debian user 2020-05-10 16:11:52 +02:00
Witold Filipczyk
8c377a083d [cookies] Check cookie path according to RFC 6265. Added test 2020-05-10 15:52:33 +02:00
Ian Jackson
9bb3415811 cookies: Properly handle cookie path= equal to request path
The code in cookies.c would arrange that c->path would always contain
a string ending in "/".  This may have been an attempt to make it
easier to do a proper subpath check in is_path_prefix.

Howver, the overall result is wrong in the case
   Set-Cookie: ....;path=/some/thing
and then later
   http://site.example.com/some/thing

c->path gets set to "/some/thing/" which doesn't pass the test in
is_path_prefix.

The precise required algorithm is described in RFC6265 5.1.4.  The
existing code fails to implement the first of the three bulleted
conditions at the end of 5.1.4.

The trailing "/" is actually not so helpful for this.  It is more
convenient to change is_path_prefix to do subpath matching directly:
we change it to insist that the supposed path prefix is a textual
prefix of the request path, *and* that this happens at a path segment
boundary: ie at '/' or end of string.[1]

Accordingly, we no longer add "/" to the cookie path.  When we strip
the final path element we strip the "/" too.  We still insert a "/" if
the path was empty.

[1] It is not 100% clear to me what "path" (URI_PATH) is but I think
it does not include any query parameters.  If I am wrong about that
then '?' should be tolerated too.

CC: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2020-05-09 14:33:45 +02:00
Witold Filipczyk
eb46577ccb [options] Added remote's reload and search to elinks --long-help 2020-05-06 20:32:19 +02:00
Witold Filipczyk
d857560466 [ipv6] this code was not tested 2020-05-05 21:48:22 +02:00
Witold Filipczyk
5188b8ab84 [network] -bind-address-ipv6 <ipv6> to bind to IPv6 address 2020-05-05 21:39:54 +02:00
Witold Filipczyk
35e32f5acb [network] -bind-address <ipv4> cmdline option to bind to given IP address 2020-05-05 21:18:29 +02:00