Commit Graph

2175 Commits

Author SHA1 Message Date
Marcel Hollerbach e800a57821 controls: always focus new button
if the terminal is unfocused, the layout is not allowed to get focus anymore.
This way we ensure that cases where we have multiple ui elements overlapping cause problems.
2020-12-09 10:40:59 +01:00
Boris Faure f29190bdaa
termptyesc: debug (re)setting cursor color + test
Do nothing for the moment. One could think about using color class for
that.
2020-07-06 23:57:37 +02:00
Boris Faure 8c970b8804
termptydbl: generate the exact double width test
This based on unicode 13.0:
https://www.unicode.org/reports/tr44/

Code is generated by tools/unicode_dbl_width.py

I'm using switch-case + fall through as I've found it was the best:
f46d550a8b
2020-07-05 23:34:13 +02:00
Boris Faure 9f2f8464f3
Fix typos
Summary: Fix some typos.

Differential Revision: https://phab.enlightenment.org/D12032
2020-07-05 20:19:59 +02:00
Boris Faure 3ee79131e4
termptyesc: no sanitize with musl when calling isnan() 2020-07-02 23:51:25 +02:00
Boris Faure c2dd1815c8
termptyesc: avoid issues with cast from double
+ no buffer overflow
2020-07-02 23:45:32 +02:00
Boris Faure ac9a92480b
termptyesc: handle xterm color format starting with "rgbi:" 2020-07-02 23:01:42 +02:00
Boris Faure 2245782dd4
termptyesc: handle xterm color format starting with "rgb:" 2020-07-02 22:33:34 +02:00
Boris Faure 5df92ee2ac
Fix typo
Summary: Fix typo on "preferred"

Reviewers: billiob

Reviewed By: billiob

Differential Revision: https://phab.enlightenment.org/D12028
2020-06-24 22:50:48 +02:00
Boris Faure 26e91924d9
Get rid of trailing whitespaces
Summary: Remove trailing whitespaces

Reviewers: billiob

Reviewed By: billiob

Differential Revision: https://phab.enlightenment.org/D12025
2020-06-24 22:49:17 +02:00
Boris Faure bf60e5cb6d
config: do copy active_links_color between configs 2020-06-23 23:48:42 +02:00
Boris Faure 8e31c28f9b
termptyesc: handle larger sharp-based colors + tests 2020-06-23 23:21:56 +02:00
Boris Faure 8c88c876cd
Merge branch 'terminology-1.7' 2020-06-23 22:39:46 +02:00
Boris Faure 157d65e7ec
win: reorder calls to please _focus_validator() 2020-06-23 22:38:28 +02:00
Boris Faure dd7d88815c
utils: add the source files 2020-06-23 13:27:07 +02:00
Boris Faure 3cbcbcd717
theme.h: no need to define EINA_FALLTHROUGH 2020-06-23 13:16:58 +02:00
Boris Faure 4bc712b07d
utils.{c,h} is needed 2020-06-23 13:16:51 +02:00
Boris Faure ab35c9b7dd
mv utils.{c,h} theme.{c,h} 2020-06-23 12:48:27 +02:00
Boris Faure a6828665dc
termptyesc: oops 2020-06-23 00:09:54 +02:00
Boris Faure 196973fcd3
rewrite changing of background/foreground colors from escape codes 2020-06-22 23:41:27 +02:00
Boris Faure d845bb256a
Merge branch 'terminology-1.7' 2020-06-21 23:48:20 +02:00
Boris Faure 30b74f84f3
win: better handle initial focus when creating splits
Closes T8756
2020-06-21 23:46:22 +02:00
Boris Faure 171f99c80c
Merge branch 'terminology-1.7' 2020-06-16 21:12:37 +02:00
Boris Faure e7894a887f
termptyesc: fix issue found by fuzzing by Øyvind Kolås (pippin from GIMP) 2020-06-16 20:54:09 +02:00
Boris Faure 50de16cca2
termio{,link}: correct check + remove useless 'if' 2020-06-15 23:08:52 +02:00
Boris Faure 548027a656
termiolink: protect isnan() usage with ubsan and musl 2020-06-15 23:03:36 +02:00
Boris Faure f9e4cd9699
reorganise settings between options_behavior and options_mouse 2020-06-15 13:21:01 +02:00
Boris Faure 24400e9c69
options_mouse: add links settings 2020-06-15 13:21:01 +02:00
Boris Faure 62b101efd7
options_links: clean up 2020-06-15 13:21:00 +02:00
Boris Faure 75e7e211f2
options_behavior: share OPTIONS_CB/OPTIONS_CX/OPTIONS_SEPARATOR 2020-06-15 13:21:00 +02:00
Boris Faure af257f2606
options_behavior: remove ELM_WRAP_WORD as it makes labels disappear… 2020-06-15 13:21:00 +02:00
Boris Faure 08bfebcf6d
mv options_helpers.{c,h} options_mouse.{c,h} 2020-06-15 13:21:00 +02:00
Boris Faure c011c48720
config: add "active_links_color" 2020-06-15 13:21:00 +02:00
Boris Faure d84304fc2e
termio: color link is not really clickable 2020-06-15 13:21:00 +02:00
Boris Faure 3973f4c348
termiolink: be able to fuzz color parser 2020-06-15 13:21:00 +02:00
Boris Faure 1866e43386
termiolink: parse css hsl color + unit test 2020-06-15 13:21:00 +02:00
Boris Faure 4b0de53914
termiolink: use eina_convert_strtod_c() to avoid issues with $LANG
because it may parse ',' as a separator (in french for example).

+ stop parsing forward on ')'
2020-06-15 13:20:59 +02:00
Boris Faure 129cda9536
termiolink: switch case is better than broken bsearch
(list was not correctly sorted)
2020-06-15 13:20:59 +02:00
Boris Faure 6dc89a5f6a
termiolink: detect rgb() colors + utest 2020-06-15 13:20:59 +02:00
Boris Faure 2f040f9532
termiolink: handle tabs in (color) links 2020-06-15 13:20:59 +02:00
Boris Faure f23467407c
termiolink: add unit test on parsing edc color 2020-06-15 13:20:59 +02:00
Boris Faure 0051a28996
termiolink: add tests on some parsing functions 2020-06-15 13:20:59 +02:00
Boris Faure 10c720aa00
termiolink: rework color finder 2020-06-15 13:20:59 +02:00
Boris Faure 2832f79b59
theme: add name to the color being previewed 2020-06-15 13:20:58 +02:00
Boris Faure 2be609daab
termio: add popup on right click on color to copy it 2020-06-15 13:20:58 +02:00
Boris Faure 990ef95c8b
termptyext: be able to test color links 2020-06-15 13:20:58 +02:00
Boris Faure b05a48d0c9
termiolink: constify 2020-06-15 13:20:58 +02:00
Boris Faure c1ac8e05a3
color preview: have a better background 2020-06-15 13:20:58 +02:00
Boris Faure 127f0987ee
link: display tooltip on colors like #ff00ff 2020-06-15 13:20:58 +02:00
Boris Faure f5fe32f70b
termiolink: isalpha() may produce unsigned-integer-overflow 2020-06-15 13:18:56 +02:00