1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00
Commit Graph

319 Commits

Author SHA1 Message Date
Witold Filipczyk
0e2fdce434 [terminal] cast 2022-01-26 17:58:29 +01:00
Witold Filipczyk
fca3a698b1 [draw] enum -> int 2022-01-21 20:30:47 +01:00
Witold Filipczyk
53a860a3d6 [strchr] casting first parameter to const char * was not a good idea 2022-01-18 20:30:48 +01:00
Witold Filipczyk
33324e8582 [kbd] This cast was too narrow 2022-01-17 18:31:09 +01:00
Witold Filipczyk
8999a19593 [cast] Explicit casts for narrowing conversions 2022-01-17 17:07:46 +01:00
Witold Filipczyk
881f896e85 [mem_calloc] Cast 2022-01-16 21:08:50 +01:00
Witold Filipczyk
be8a030fa7 [mem_realloc] cast return value 2022-01-16 19:38:30 +01:00
Witold Filipczyk
20c161559c [mem_alloc] cast return value 2022-01-16 19:09:27 +01:00
Witold Filipczyk
88d9704e11 [mouse] Create or delete ~/.elinks/mouse.lock file while changing ui.mouse_disable option. Refs #137
There is no good way to inform slave elinks instances about options. So, for mouse there is a workaround.
Note, If you set ui.mouse_disable = 1 in elinks.conf manually, to get effect on 2nd ELinks instance,
you must also touch ~/.elinks/mouse.lock . Changes via option manager delete or create this file automatically.
2022-01-02 15:17:53 +01:00
Witold Filipczyk
ac7038d9d4 [terminal] Cache ui.double_esc 2021-12-20 12:15:11 +01:00
Witold Filipczyk
09e6fb59da [kbd] ui.double_esc option, based on PLD patch 2021-11-06 17:40:17 +01:00
Witold Filipczyk
7feb5f4140 [mouse] Show message about disabled/enabled mouse 2021-09-21 19:02:43 +02:00
Witold Filipczyk
443cc69740 Revert "[colors] test commit"
This reverts commit 7992e39476.
2021-08-13 14:49:43 +02:00
Witold Filipczyk
7992e39476 [colors] test commit 2021-08-11 20:04:16 +02:00
Witold Filipczyk
66305fcb50 [gettext] try system gettext. Refs #62
Now, only meson was changed.
-Dnls=true -Dgettext=true
2021-08-08 21:25:08 +02:00
Witold Filipczyk
56ec5c69dd [kbd] Compilation warning 2021-08-06 19:20:17 +02:00
Witold Filipczyk
4e6d3a0037 [meson] ncursesw dependency when built --with-terminfo 2021-04-12 21:17:27 +02:00
sgerwk
91819222af code cleanup 2021-03-20 17:20:26 +01:00
sgerwk
b21dea1ba0 close stdin before calling a background program
The solution with fork() is more general, but it unnecessarily produces two new
process: one in exe_no_stdin(), one in system(). The solution with FD_CLOEXEC
is simpler as it only requires changing and restoring a flag of stdin, but I
suspect it may not be available in all OSes elinks can be compiled for.
2021-03-20 00:58:54 +01:00
Witold Filipczyk
7b749dccb4 [terminal] itrm_queue data must be unsigned char * . Refs #87 2021-01-17 18:28:42 +01:00
Witold Filipczyk
0fea79cc8f [cflags] Removed -Wno-pointer-sign
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00
Witold Filipczyk
1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00
Witold Filipczyk
5f87bdbcb2 [meson] meson build scripts.
Not finished yet, but I added to motivate myself and others.
The goal is to get a few seconds faster builds.

autotools still will be available.
2020-09-05 22:06:01 +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
66c476a754 [mouse] Initialization of variable was not necessary. 2020-05-26 21:36:46 +02:00
sgerwk
bb66fd3c37 config option for disabling the mouse 2020-05-26 00:29:57 +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
a3e84e27c7 [terminal] Try to fix #45 as suggested by Debian user 2020-05-10 16:11:52 +02:00
Witold Filipczyk
51dd9e7e6e [color] Revert changes related to leading and trailing spaces and colours
It did not look good.
2019-11-21 21:01:49 +01:00
Witold Filipczyk
3d96b0d7d7 Revert "Compile with C++."
This reverts commit 4f4df33638.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
4f4df33638 Compile with C++.
Weak points:
- alignof
- js problems

Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
2019-02-17 20:46:16 +01:00
Witold Filipczyk
d8be2c505e Rename struct box to struct el_box.
In the future I want to copy some code from netsurf, so I'm preparing.
2018-09-09 19:14:56 +02:00
Witold Filipczyk
2c6d782aef Check returned value of tiparm. 2017-11-28 22:07:57 +01:00
Witold Filipczyk
d466e84eb6 TERMINFO does not work well for linux-m 2017-11-28 20:31:41 +01:00
Witold Filipczyk
03968b93c8 Do not use terminfo for true color mode. 2017-11-25 11:46:28 +01:00
Witold Filipczyk
0420ce5cc9 Similar code as in original ELinks.
Still issues with displaying freshcode.club on konsole.
2017-11-23 18:00:20 +01:00
Witold Filipczyk
d1ddf27332 Cleaner code of checking if line is dirty. 2017-11-23 15:53:52 +01:00
Witold Filipczyk
2bd6ac3f08 terminfo_cursor_address 2017-11-23 13:39:04 +01:00
Witold Filipczyk
49f41d4371 Rewritten add_chars macro.
Before it redrawn only changed cells, but were problems with ghosts.
See test/fresh.html. Now it redraws whole lines, which were modified.
2017-11-23 11:40:21 +01:00
Witold Filipczyk
4d85cd24eb Removed code suspected for traces on screen when scrolling. 2017-11-22 18:19:32 +01:00
Witold Filipczyk
99058d53d7 terminfo_max_colors() 2017-11-21 15:36:28 +01:00
Witold Filipczyk
d8e749c0f4 terminfo_clear_screen 2017-11-20 11:28:53 +01:00
Witold Filipczyk
299e2b9aa4 Missing files 2017-11-19 20:18:44 +01:00
Witold Filipczyk
c4cb7ed8e5 Beginnings of terminfo support.
--with-terminfo must be added for configure
and --terminfo to command line.
terminfo is only used for output and not all sequences are changed.
2017-11-19 18:29:38 +01:00
Witold Filipczyk
9175f8ed39 Terminate slave browsers with libev(ent). 2017-11-18 15:16:22 +01:00
Witold Filipczyk
257422f28c Reorganisation of code to make C++ happy 2016-04-20 22:21:31 +02:00
Witold Filipczyk
52d6f37c8e Explicit cast to (const char *) for strchr function (C++) 2016-04-20 19:43:37 +02:00
Witold Filipczyk
89387e3679 Compilation fix (C++) 2016-04-20 19:41:12 +02:00