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 7992e39476d0e738f6ca6fad61536b21f1b02316.
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 a3e84e27c7f7e579a1c54674ea9e247dbe40d5a7.
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 4f4df33638deccd3ed1ce375d3b33da0c652bf86.
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
Witold Filipczyk
8cf00fa61c
delete -> delete_ for C++ compatibility
2016-04-20 18:57:32 +02:00
Witold Filipczyk
ca18522eec
Revert "Shorten add_chars. Do not call compare_fg_color and compare_bg_color."
...
This reverts commit 8132c156ddd7c42d074d66b31a18217623a921ec.
On download dialog cursor jumps too much
2015-09-17 21:38:35 +02:00
Witold Filipczyk
8132c156dd
Shorten add_chars. Do not call compare_fg_color and compare_bg_color.
...
Some sites while scrolling showed "artifacts". For example twojepc.pl.
2015-09-17 21:08:15 +02:00
Kalle Olavi Niemitalo
263c1836cb
Don't retry get_window_title
...
Call get_window_title() at most once per terminal, even if it fails.
If ELinks is configured with X11 support, get_window_title() calls
XOpenDisplay(), which can sleep if $DISPLAY does not respond.
This delay was previously incurred every time ELinks changed the
title. Besides, if ELinks had already changed the title, setting
ditrm->orig_title = get_window_title(); did not make sense anyway.
(cherry picked from elinks-0.12 commit 5d4beadc4b76f826f006fa951af4b24add12d4f6)
Conflicts:
src/terminal/kbd.c:
get_window_title has a codepage parameter in 0.13.GIT.
2012-11-03 22:14:48 +02:00
Kalle Olavi Niemitalo
6f4c95cc7f
Bug 943: Refuse user JS actions in unfocused tabs
...
(cherry picked from elinks-0.12 commit 51dc3beee71e87bd254845591c95e378ba59970d)
Conflicts:
NEWS: Both 0.12pre5.GIT and 0.13.GIT had inserted a new section.
src/terminal/window.c: Both had inserted a new function.
2012-11-03 22:10:27 +02:00