Witold Filipczyk
541303cbff
[modules] Additional function getname
...
When non NULL it will be return module name and version.
2024-09-26 16:19:26 +02:00
Witold Filipczyk
59fc662651
[refactor] src/ecmascript -> src/js
2024-09-24 21:51:24 +02:00
Witold Filipczyk
24b3adfc9d
[action] Added reopen-last-closed-tab action. Refs #309
...
The uri of the latest closed tab uri is remembered in struct terminal.
And when the reopen-last-closed-tab action is executed, then uri
is open in new tab in foreground. Only one is in memory.
If you close two tabs, only on one of them can be reopened.
No key is assigned to this action by default.
2024-09-01 14:19:48 +02:00
Witold Filipczyk
8b57c0b617
[dump] Added the "document.dump.scripting_enabled" option
2024-08-15 16:47:41 +02:00
Witold Filipczyk
63590b0e05
[dump] char * in place of struct string *
2024-06-25 12:58:29 +02:00
Witold Filipczyk
0f2f6beb05
[dump] print footer after finished dump, not after starting dump. Refs #314
2024-06-25 09:49:44 +02:00
Witold Filipczyk
86234795fb
[ecmascript] reset_document before rewrite
2024-06-22 12:29:07 +02:00
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