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

188 Commits

Author SHA1 Message Date
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
4c3d7ecbc4 [win32] Check if cmdline_options is not NULL 2024-04-07 19:57:59 +02:00
Witold Filipczyk
a1b438a140 [types] get rid of longptr_T 2024-04-07 19:55:02 +02:00
Witold Filipczyk
d09f8060ee [types] Define OFFT_MAX somehow 2024-04-04 15:30:09 +02:00
Witold Filipczyk
e47a482590 [signals] Removed code related to SIGALRM
links does not have such code.
2024-03-17 17:05:22 +01:00
Witold Filipczyk
c1d4d7d9bc [signals] EINTRLOOP for consistence 2024-03-17 11:03:48 +01:00
Witold Filipczyk
b53bcce570 [libevent] copied related to signals code from links2
I don't know how it works, but CTRL-Z suspends without additional
keystrokes when libevent is enabled.
2024-03-08 21:14:17 +01: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
0acfd90225 [fg] Resize terminal after CTRL-Z and fg. Refs #287 2024-03-06 11:06:39 +01:00
Witold Filipczyk
94cfc49ce1 [win32] Every mouse DOWN followed by UP
It is rather a workaround, but works for the right button click.
2024-01-07 16:18:54 +01:00
Witold Filipczyk
a96b9fba1f [win32] middle and right buttons were swapped
Right-click menu still not functional.
It appears, but disaappers immediately, and "Go back" action is choosen.
2024-01-06 15:51:44 +01:00
Witold Filipczyk
6642ebe509 [win32] Some changes in mouse handling
It is a step forward. There some problems with wheel, the right mouse button.
2024-01-04 18:29:31 +01:00
Witold Filipczyk
6f11b9be8b [windows] Fixes for FSP (send and recv) 2023-12-09 19:57:08 +01:00
Witold Filipczyk
425d779e15 [terminal] Avoid division by zero. Refs #276 2023-12-07 08:21:13 +01:00
Witold Filipczyk
e538a9f827 [terminal] use fd not 1 for ioctl 2023-12-06 08:21:29 +01:00
Witold Filipczyk
25027fca0a [dos] doc.cpp -> dos.c 2023-11-25 18:23:18 +01:00
Witold Filipczyk
aa7edfc16d [osdep] initialize ret 2023-11-16 19:09:49 +01:00
Witold Filipczyk
a76aa91566 [win32] style 2023-11-08 17:33:06 +01:00
Witold Filipczyk
98a9cbf2b7 [windows] handle terminal resize, based on links2 code 2023-11-08 17:29:58 +01:00
Witold Filipczyk
1042755f7f [windows] Less number of warnings 2023-11-08 12:28:00 +01:00
Witold Filipczyk
decdfa853c [windows] Compilation fixes 2023-11-04 20:30:25 +01:00
Witold Filipczyk
eba67dc278 [dos] CONFIG_ECMASCRIPT -> CONFIG_QUICKJS
mujs also can be compiled, and does not have check_heartbeats.
2023-11-01 17:19:09 +01:00
Witold Filipczyk
bda0a3d1b7 [xterm] Assume that if WAYLAND_DISPLAY or DISPLAY is set it must be xterm 2023-07-20 10:10:07 +02:00
Witold Filipczyk
61ceecdbd8 [term] Check for XDG_SESSION_DESKTOP. Refs #246
New mouse reporting "\E [ <" is not implemented, but old type
should be sufficient. The problem is detecting xterm environment.
For detected "xterm" mouse init sequence is sent.
Added check for existence of XDG_SESSION_DESKTOP env.
2023-07-18 16:01:42 +02:00
Witold Filipczyk
6263ba189d [dos] compilation fix 2023-07-08 09:31:30 +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
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
b3402e7224 [dos] elinks.lsm
meson version
2023-04-26 18:57:45 +02:00
Robert Scheck
b8ae8297e8 Port ELinks to libidn2
Bug: https://bugzilla.redhat.com/1098789
2023-01-02 09:28:34 +01:00
Witold Filipczyk
25515d707a [xterm] If TERM environment variable starts with "xterm", then it is xterm.
For ssh sessions.
2022-12-17 10:31:42 +01:00
Witold Filipczyk
e7603f2b21 [dos] compilation fixes 2022-09-10 12:40:21 +02:00
Witold Filipczyk
516d6aa314 [dos] Try to fix Dockerfile 2022-09-10 12:26:57 +02:00
Witold Filipczyk
969974175a [bsd] compilation fix 2022-07-24 21:46:34 +02:00
Witold Filipczyk
5c550ff2a0 [osdep] suppress warning 2022-06-25 16:15:12 +02:00
Witold Filipczyk
37afb1de72 [c] empty instruction 2022-06-22 21:39:59 +02:00
Witold Filipczyk
f655bd03c7 [dos] Do not install timer ISR, when ecmascript is not compiled in. 2022-06-13 15:18:58 +02:00
Witold Filipczyk
29bf0ee9bb [dos,js] Try to add own timer ISR
The goal is to check if js scripts do not execute too long under DOS.
It may be buggy.
2022-06-12 22:14:49 +02:00
Witold Filipczyk
14ba55c0db [dos] I don't know why it did not work when compiled by g++ 2022-06-11 22:03:59 +02:00
Witold Filipczyk
f52c889304 [dos] direct value of r.h.bh 2022-06-07 18:55:18 +02:00
Witold Filipczyk
46297a48ff [dos] os shell and NULL instead of DUMMY 2022-06-07 14:37:38 +02:00
Witold Filipczyk
126803974a [dos] wheelmouse 2022-06-06 15:29:45 +02:00
Witold Filipczyk
064c79433d [dos] get System codepage under dos 2022-06-05 19:12:25 +02:00
Witold Filipczyk
0db5bb7764 [clipboard] Moved function to session, to easier testing. 2022-06-05 15:25:42 +02:00
Witold Filipczyk
acdff2e7db [dos] compile also without nls 2022-06-05 14:08:30 +02:00
Witold Filipczyk
a8e2302713 [dos] another compilation fix 2022-05-13 17:09:14 +02:00
Witold Filipczyk
a2472f2cbb [dos] include unistd.h 2022-05-13 16:54:26 +02:00
Witold Filipczyk
6446dfea82 [ssl] compilation fix 2022-05-13 16:38:52 +02:00
Witold Filipczyk
c3a3225699 [dos] init_os is init_osdep for other operating systems 2022-05-12 14:11:01 +02:00
Witold Filipczyk
0e7507b285 [dos] Do not define CONFIG_OS_UNIX for DOS 2022-05-10 20:19:42 +02:00