Scott Mcdermott
b2556aa953
[fg] track master proc for suspend via pids, not term fds, for fork_on_start
...
When ui.sessions.fork_on_start, we fork a process that has a different
fdout than get_output_handle() (which has hardcoded fdout of 1), so it
will never be considered term->master, yet this is the process we want
to wake up in SIGTSTP handler.
Since we cannot rely on term->master to determine if we are the master
process, we instead move master_pid to be set explicitly at the places
where we have information about whether our process is a master or a
slave: first on start, then once the interlink determination has been
made.
master_pid has to be set in both parent and child, because both will get
suspended and need to know which one needs to resume in background with
SIGCONT (the master). We can't inherit from the parent because it's
unknown at the time of fork.
Previously, master_pid worked correctly with fork_on_start=0,
-no-connect or -dump, but not with fork_on_start=1.
See #287 for background.
2024-04-10 15:14:23 -07:00
Witold Filipczyk
432771ac82
[fg] master_pid is 0 for slave terminals, so no need to comapare with pid
2024-03-07 13:47:30 +01:00
Witold Filipczyk
b102addf9f
[fg] Try to send CONT signal only from the master instance. Refs #287
2024-03-07 11:44:42 +01:00
Witold Filipczyk
9c04585e84
[terminal] Add cell_height and cell_width to structs unconditionally. Refs #288
2024-03-07 08:22:57 +01: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
5c8b62247a
[screen] Test commit. Added element_offset to struct screen_char
2024-01-21 17:02:09 +01:00
Witold Filipczyk
0b7cdab108
[terminal] Do not draw the right bottom cell
...
For wineconsole.
2024-01-05 19:29:58 +01:00
Witold Filipczyk
84f6a08f83
[kbd] Test commit. Change <= 0 to < 0
...
I'm trying to debug mouse issues.
2024-01-03 21:37:07 +01:00
Witold Filipczyk
fd5e164b8f
[download] memory leaks
2023-12-28 13:01:01 +01:00
Witold Filipczyk
db99981ec5
[terminal] Make a copy of filename for hash
2023-11-26 19:00:04 +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
dabfe8dbbd
[terminal] initialize blockh
2023-11-16 19:03:02 +01:00
Witold Filipczyk
02b644aa64
[terminal] Initialize blockh
2023-11-16 19:00:19 +01:00
Witold Filipczyk
6629f34466
[memcount] CONFIG_DEBUG inside memcount.h
2023-10-25 17:17:08 +02:00
Witold Filipczyk
2c47b22bc4
[libsixel] memcount
2023-10-23 21:54:29 +02:00
Witold Filipczyk
7185d705de
[debug] compilation fixes for -Dwithdebug=true
2023-10-23 15:56:53 +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
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
acbc574b4b
[images] Store in map url -> filename for images and others. Refs #257
2023-08-11 13:24:10 +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
c45209729f
[terminfo] Terminfo also for mono terminals
2023-07-20 12:25:41 +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
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
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
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
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
82d76921cd
[sixel] Big memory leak
2023-05-26 13:13:00 +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
cb5916214d
[c] Let be compatible with -std=gnu90
2023-02-12 12:54:22 +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
f3dffb9fd8
[screen] try to replace dirty_from and dirty_to with was_dirty
2022-12-15 14:55:38 +01:00
Witold Filipczyk
df5dd1515e
[screen] minor optimisation
2022-12-14 22:18:10 +01:00
Witold Filipczyk
571cb05e05
[screen] Added struct bitfield dirty to screen
2022-12-14 22:04:01 +01:00
Witold Filipczyk
c2bdd5a723
[color] Restore painting of trailing spaces
2022-10-17 10:04:46 +02:00
Witold Filipczyk
828d9e75cf
[draw] unicode_val_T in draw_box for UTF8
2022-10-16 15:58:06 +02:00
Witold Filipczyk
f7c44b52fc
[color] draw background
2022-10-16 15:26:49 +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