Witold Filipczyk
172c32a64c
[cpp] All files suspected for any C++ relation renamed to cpp
...
Now (in meson) .c files are compiled by C compiler and .cpp by C++ compiler.
2022-07-31 16:44:11 +02:00
Witold Filipczyk
7ea04c7f0f
[isspace] Some implementations of isspace require unsigned char
2022-06-28 20:25:06 +02:00
Witold Filipczyk
3af789e9e6
[smjs] More compilation fixes. Mainly casts. Refs #176
2022-06-17 15:55:05 +02:00
Witold Filipczyk
dfa578d7d9
[color] initialize is_node
2022-06-14 19:51:25 +02:00
Witold Filipczyk
0aeb8b4c25
[mouse] enabled mouse in DOS
...
Also redefined constants in mouse.h to be consistent with links.
2022-05-10 19:19:49 +02:00
Witold Filipczyk
0de00f8555
[draw] Segfault. Refs #167
2022-05-09 20:53:35 +02:00
Witold Filipczyk
ae23e15104
Revert "[color] Revert changes related to leading and trailing spaces and colours"
...
This reverts commit 51dd9e7e6e
.
2022-05-09 20:37:08 +02:00
Witold Filipczyk
2bec2984c4
[dos] Very experimental DOS port based on links-2.26 code
...
WATT-32 and openssl you must compile yourself.
You must tweak configure options, something like:
--disable-utf-8, etc.
Only checked on dosemu with LFN. Networking lags is a bit.
2022-05-09 18:53:36 +02:00
Witold Filipczyk
b9a648059b
[terminal] Workaround for infinite loop triggered by -remote openURL(URL, new-window)
2022-04-23 17:23:32 +02:00
Unknown
01319aafd2
[ win64 ] build_win64.sh, doc etc.
2022-04-22 21:47:52 +02:00
Witold Filipczyk
1e27359afa
[screen] Drop optimisation
...
Shadows were not displayed correctly, likely because of this check.
2022-03-27 19:37:16 +02:00
Witold Filipczyk
8ee9062955
[options] Introduced ui.background_char. Refs #142
...
Integer code of background character.
For example:
32 for space
9617 is default value (TV background char).
2022-03-25 20:47:04 +01:00
Witold Filipczyk
ac0241f479
[colors] Fix issue with mono colors and menu
2022-03-24 16:05:33 +01:00
Witold Filipczyk
835dce933f
[screen] Another compilation fix. Refs #142
2022-03-22 20:49:57 +01:00
Witold Filipczyk
27ca62762c
[colors] Compilation fixes. Refs #142
2022-03-22 19:11:23 +01:00
Witold Filipczyk
458a4894f2
[screen] copy_struct
2022-03-21 14:37:10 +01:00
Witold Filipczyk
aff460d7a9
[screen] Do not check twice for is_node
2022-03-20 16:10:17 +01:00
Witold Filipczyk
9e39ef5d1a
[colors] Unification
...
Still do not know why in 24bit are issues with menu.
2022-03-20 16:01:05 +01:00
Witold Filipczyk
085c2ebd95
[colors] Simplifications
2022-03-20 15:41:29 +01:00
Witold Filipczyk
411b25cecc
[colors] One function instead of two for COLOR_MODE_16
2022-03-20 15:24:15 +01:00
Witold Filipczyk
1b9072307a
[background] Turbo Vision's background on startup screen
2022-03-20 14:34:19 +01:00
Witold Filipczyk
b2ea78617e
[colors] Added _node for 88 colors
...
Now 88 and 256 colors have inefficient check in add_chars256.
2022-03-20 13:43:58 +01:00
Witold Filipczyk
ed4175a4a7
[mono] _node colors
2022-03-20 13:22:24 +01:00
Witold Filipczyk
e8719ba9e7
[colors] COLOR_MODE_16
...
Some bugs left.
2022-03-18 17:00:25 +01:00
Witold Filipczyk
9b1b2f4590
[colors] displaying node_numbers colors for 24bit color
2022-03-18 16:33:52 +01:00
Witold Filipczyk
407ca7d114
[colors] Implemented displaying for 256 color mode
2022-03-18 16:24:48 +01:00
Witold Filipczyk
89e314d510
[draw] Overloaded version draw functions.
...
Functions with suffix _node instead of struct color_pair *
take as parameter node_number.
2022-03-11 20:19:48 +01:00
Witold Filipczyk
e26fb55fa7
[screen] placeholders for functions which would get_colors from node number
2022-03-07 20:24:11 +01:00
Witold Filipczyk
d8cbef44d6
[draw] clear also is_node
2022-03-06 20:25:37 +01:00
Witold Filipczyk
1e657abb3b
[screen_char] Added bitfield is_node.
2022-03-05 21:12:14 +01:00
Witold Filipczyk
2e2737e6de
[select] Introduced get_handler_data
2022-02-21 19:03:54 +01:00
Witold Filipczyk
f3496ae098
[terminfo] const char *
2022-02-21 18:25:11 +01:00
Witold Filipczyk
bcf9589ff0
[osdep] const in get_shell
2022-02-20 13:52:47 +01:00
Witold Filipczyk
89340c3848
[intl] const char * in get_cp_mime_name
2022-02-18 15:45:47 +01:00
Witold Filipczyk
84f39d8f83
[terminal] const in hard_write
2022-02-16 20:49:21 +01:00
Witold Filipczyk
b982bd9abf
[draw] const char * in draw_text
2022-01-31 16:18:43 +01:00
Witold Filipczyk
277f341d2b
[terminal] exec_on_terminal and related rewritten a bit to allow const param
2022-01-30 18:12:38 +01:00
Witold Filipczyk
6c83455ab7
[options] these can be const
2022-01-29 17:49:38 +01:00
Witold Filipczyk
7ea1e0b80a
[screen] Longer initializer
2022-01-28 17:57:44 +01:00
Witold Filipczyk
65e74dc39d
[term] enum term_mode_type -> term_mode_type_T
2022-01-28 17:54:58 +01:00
Witold Filipczyk
63f151c35f
[screen] Too long initializer
2022-01-28 17:50:24 +01:00
Witold Filipczyk
5ef839cf18
[term] enum term_env_type -> term_env_type_T
2022-01-28 17:37:43 +01:00
Witold Filipczyk
09e7b73a41
[renderer] enum link_state -> link_state_T, enum color_flags -> color_flags_T
2022-01-28 16:11:54 +01:00
Witold Filipczyk
e8df90f7b0
[term] enum term_exec -> term_exec_T
2022-01-28 15:11:23 +01:00
Witold Filipczyk
534a654eb7
[term] typedef unsigned char term_event_modifier_T
2022-01-28 15:07:51 +01:00
Witold Filipczyk
199f1c60ff
[draw] enum screen_char_attr -> screen_char_attr_T
2022-01-28 14:47:36 +01:00
Witold Filipczyk
d839efc9f4
[color] enum color_mode -> color_mode_T
2022-01-28 14:42:48 +01:00
Witold Filipczyk
e57bae65d3
[draw] enum border_char -> border_char_T
2022-01-28 14:30:01 +01:00
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
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 8132c156dd
.
On download dialog cursor jumps too much
2015-09-17 21:38:35 +02:00