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

515 Commits

Author SHA1 Message Date
Witold Filipczyk
761752239f [ecmascript] Try to not put_interpreter when page is modified 2024-06-08 14:08:28 +02:00
Witold Filipczyk
9e4541a0b2 [ecmascript] Check NULL 2024-05-20 16:05:52 +02:00
Witold Filipczyk
f762775b9d [ecmascript] Commented out clientHeight and similar properties
Code is not ready yet.
2024-03-02 19:13:45 +01:00
Witold Filipczyk
9e3d874577 [document] Added function scan document
This function must calculate dimensions of nodes in document.
Every node has a rectangle. x0,y0 is the left up corner, x1,y1 - the right bottom.
In theory every child of given node is contained in this rectangle.
2024-01-26 18:43:33 +01:00
Witold Filipczyk
e0909362eb [view] this include is only for ecmascript 2023-11-28 15:47:53 +01:00
Witold Filipczyk
3bdb576929 [viewer] unneeded include 2023-11-28 15:45:28 +01:00
Witold Filipczyk
899304d6ef [viewer] form.cpp -> form.c 2023-11-28 15:41:48 +01:00
Witold Filipczyk
c14989ab91 [viewer] link.cpp -> link.c
Moved some code to ecmascript-c.cpp
2023-11-28 15:33:54 +01:00
Witold Filipczyk
88d836355d [viewer] This include was not needed 2023-11-28 15:15:56 +01:00
Witold Filipczyk
7e48d22f51 [viewer] view.cpp -> view.c 2023-11-27 19:14:39 +01:00
Witold Filipczyk
bbf902f426 [viewer] This include was not needed 2023-11-27 18:52:19 +01:00
Witold Filipczyk
8f431a126f [viewer] vs.cpp -> vs.c 2023-11-27 18:34:15 +01:00
Witold Filipczyk
009d09ba52 [viewer] action.cpp -> action.c 2023-11-25 14:13:10 +01:00
Witold Filipczyk
53522b8946 [color] memcmp for comparison of colors
Weak point is for example:
256 colors, compiled with true colors.
2023-11-21 18:35:13 +01:00
Witold Filipczyk
decdfa853c [windows] Compilation fixes 2023-11-04 20:30:25 +01: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
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
fb1c70564e [mujs] window.event 2023-09-21 19:06:52 +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
c3eae90ce9 [clang] Compilation fixes 2023-09-12 16:41:09 +02:00
Witold Filipczyk
664b85418e [menu] Added "Remove temporary files" menu entry. 2023-08-11 16:06:05 +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
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
2aa34e0f22 [iframe] do not reset current_link 2023-06-04 17:46:22 +02:00
gabriele balducci
a96d7b3e5f Allow building with -Dlibsixel=false 2023-05-28 10:52:07 +01:59
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
8ad10015f2 [ecmascript] Changes related to events (ontest.html) 2023-05-05 13:23:35 +02:00
Witold Filipczyk
cb5916214d [c] Let be compatible with -std=gnu90 2023-02-12 12:54:22 +01:00
Witold Filipczyk
d2bbe4cf0a [ecmascript] Compilation fixes 2023-01-20 18:03:02 +01:00
Witold Filipczyk
c18525f481 [dump] goto next_iteration instead of continue. 2022-11-28 09:13:48 +01:00
Witold Filipczyk
023991e5c5 [dump] Check for end of link at the end of loop, not at the begining (off by one). Refs #198 2022-11-28 08:32:02 +01:00
Witold Filipczyk
8e619e4d02 [dump] Small optimisation. Refs #198 2022-11-27 19:51:59 +01:00
Witold Filipczyk
8ac424f01b [dump] Added document.dump.terminal_hyperlinks option . Refs #198 2022-11-27 19:39:34 +01:00
Witold Filipczyk
5fa0552ab0 [exmode] Introduced 10 macro config options. macro.0 to macro.9 . Refs #196
They can be bind to keys. For example

set macro.0 = "set ui.show_title_bar = 0"
set macro.1 = "set ui.show_title_bar = 1"
bind "main" "z" = "macro-0"
bind "main" "Z" = "macro-1"
2022-11-13 17:45:42 +01:00
Witold Filipczyk
b67ac8926a [mujs] KeyboardEvent 2022-11-11 19:20:24 +01:00
Witold Filipczyk
e3f83ebcc4 [quickjs] element addEventListener and KeybaordEvent
TODO: memory leaks
2022-11-11 11:22:37 +01:00
Witold Filipczyk
b45f1480f5 [event] For now only Spidermonkey has implemented (partially) KeyboardEvent 2022-11-10 19:44:48 +01:00
Witold Filipczyk
127b2f403b [view] try key events only when INSERT_MODE is ON 2022-11-10 17:14:56 +01:00
Witold Filipczyk
c5569ccb27 [ecmascript] Implemented keyboardEvent in spidermonkey code.
It does not work well yet.
2022-11-09 19:21:16 +01:00
Witold Filipczyk
56ab960cce [ecmascript] Added keydown and keyup code for eventListeners.
TODO: KeyEvent (keycode etc.)
2022-11-08 19:43:01 +01:00
Witold Filipczyk
d7f4f94a62 [click] Added eventListener. It works for these two test cases. 2022-11-07 20:59:19 +01:00
Witold Filipczyk
3330427738 [ecmascript] onkeyup and onkeydown 2022-11-03 19:30:57 +01:00
Witold Filipczyk
c2bdd5a723 [color] Restore painting of trailing spaces 2022-10-17 10:04:46 +02:00
Witold Filipczyk
7135d6db08 [color] Draw background 2022-10-16 15:53:56 +02:00
Witold Filipczyk
c086cbe26e [color] Removed code related to draw_text_node
This idea failed. Code was slow.
2022-10-16 15:18:34 +02:00