Commit Graph

507 Commits

Author SHA1 Message Date
Boris Faure 421e40dbfc termio: evas_object_focus_get() agains obj is not valid
Focus is not handled at that layer.
Closes T8176
2019-09-02 23:45:46 +02:00
Boris Faure 54340c464d termio: fix CID1402874, buffer overrun
Also fix CID1402875, CID1402876, CID1402877, CID1402878
2019-07-08 22:19:47 +02:00
Boris Faure 7b3110d4a2 termpty: attach a Config * to Termpty 2019-06-23 22:02:50 +02:00
Alastair Poole 18bff78895 build: Fix build and behaviour on OpenBSD.
Summary:
OpenBSD does not have strchrnul. Also, fix range
issue with window size.

The geometry is broken on OpenBSD and DragonFlyBSD.
A previous patch solved this issue. Range was
changed to <= 0, but needs to be <= 1 to  ensure
the terminal opens and displays content.

Reviewers: billiob

Reviewed By: billiob

Differential Revision: https://phab.enlightenment.org/D9157
2019-06-23 16:39:17 +02:00
Boris Faure cf060d2a04 focus: block focus manager from getting key inputs when they are consumed 2019-06-18 22:06:44 +02:00
Boris Faure c151c3c0a0 termio: use term_is_focused() since it is now more reliable
sd->self is not the evas object that is being focused
2019-06-17 22:13:39 +02:00
Carsten Haitzler 40ea16d995 terminology - fix initial size hints to be stepped right
@fix
2019-05-18 02:41:16 +01:00
Boris Faure 67de5e75b2 termio: do replace \n by \r when pasting 2019-05-05 12:56:23 +02:00
Boris Faure f1837dbc0c termio: fix buffer overflow if too many \n 2019-05-05 11:41:10 +02:00
Boris Faure 16ee36dbe3 termio: decode pasted string as utf8 and skip some codepoints
Should fix issue pasting codepoints that fit on multiple bytes
2019-05-03 23:27:29 +02:00
Boris Faure 3378f033f5 termio: remove leak. CID1399747 2019-03-20 22:31:58 +01:00
Boris Faure 756a45e654 termio: skip pasted chars < ' ' but keep '\n'
See https://www.openwall.com/lists/oss-security/2018/03/05/2
2019-03-19 23:18:03 +01:00
Boris Faure 485d7a3edf termio: fix leak. CID1399746 CID1399747 2019-03-18 23:02:36 +01:00
Boris Faure 4bc04c5421 termiointernals: be able to mock mouse wheel 2019-02-19 20:03:14 +01:00
Boris Faure 35587220c7 termiointernals: add termio_internal_get_selection() 2019-02-10 20:09:20 +01:00
Boris Faure 43c6777e57 termiointernals: add termio_internal_render()
used to test selection invalidation later on
2019-02-09 23:48:15 +01:00
Boris Faure e9ce3d02a3 tytest: add escape codes to simulate mouse interactions 2019-02-07 22:20:36 +01:00
Boris Faure 4e38d0d2c7 termio: simplify code by passing sd instead of obj
Stub function to get Termio from Evas_Object
2019-02-06 23:19:29 +01:00
Boris Faure 2f432dcd33 tyfuzz: stub functions from termio 2019-02-06 23:19:29 +01:00
Boris Faure e6886bcaee move some code to termiointernals to be able to test it 2019-02-06 23:19:29 +01:00
Boris Faure b05e20333d termio:_smart_update_queue() needs only sd 2019-02-06 23:19:29 +01:00
Boris Faure 4c8634686c termio: unset selection in _smart_apply if codepoints have changed in sel 2019-02-06 23:19:29 +01:00
Boris Faure 988a9dad4d termio: add functions to get selection as an array of codepoints 2019-02-06 23:19:29 +01:00
Boris Faure 5303f9eb28 termio: use ty_sb to deal with selections 2019-02-06 23:19:29 +01:00
Boris Faure 891168a9a7 termio/termptyops: remove termio_content_change()
It shall no longer be needed.
2019-02-06 23:19:29 +01:00
Boris Faure 2e34b8e962 add configuration on whether to activate links
- on email
- on file paths
- on URLs
- from escape codes (called hyper links in the code)

Closes T6339
2019-01-21 22:11:22 +01:00
Boris Faure 571d2d03f1 Merge branch 'terminology-1.3' 2019-01-05 18:33:53 +01:00
Boris Faure 09d6660ae7 termio: fix invalid initial resize. Closes T7548 2019-01-05 18:28:43 +01:00
Boris Faure 6952836a32 termio: allow 1 line or 1 column windows. Closes T7532 2019-01-04 23:34:08 +01:00
Boris Faure 9cb340e29f termio: inverse colors only after applying bold/faint (more precise) 2018-12-29 16:57:44 +01:00
Boris Faure 10f6dc4737 termpty: set environment variable WINDOWID. Closes T7484 2018-12-24 11:10:01 +01:00
Boris Faure ddef1ec515 Merge remote-tracking branch 'origin/terminology-1.3' 2018-12-23 10:22:08 +01:00
Boris Faure 744c93a37d termio: fix potential segv. CID1397077 2018-12-23 10:20:50 +01:00
Boris Faure 070450aadd termio: fix use of uninitialized variable 2018-12-22 23:50:10 +01:00
Boris Faure 64b58bb094 termio/win: handle hyperlinks on right click
Fix segfault
2018-12-13 16:41:29 +01:00
Boris Faure 2589118d19 termio/win: handle hyperlinks on right click
Fix segfault
2018-12-12 21:42:42 +01:00
Carsten Haitzler 0d19a81c7f warning fix - compare unsigned vs unsigned
use Eina_Unicode so we compare the same type
2018-11-16 12:55:30 +00:00
Carsten Haitzler b389ed2b89 check if buffer size is too small strunc was truncated 2018-11-16 12:54:39 +00:00
Boris Faure b8488a2059 termio: obj is unused 2018-10-15 21:34:15 +02:00
Boris Faure 9fc4f6c096 termio: remove unused same_link parameter. CID1396157 2018-10-14 12:49:04 +02:00
Boris Faure 1b909cb569 gravatar: also with hyperlinks starting with "mailto:" 2018-10-14 11:57:11 +02:00
Boris Faure 0a6589ca31 termio: fully cleanup past links when hovering hyperlink 2018-10-14 11:32:21 +02:00
Boris Faure dc5c291bb9 highlight links on mouseover
+ related fixes
2018-10-13 19:21:19 +02:00
Boris Faure e3faaab83d termio: simplify _handle_query_esc() 2018-10-13 18:10:54 +02:00
Boris Faure bd0ca2c224 Merge branch 'terminology-1.2' 2018-09-29 17:24:47 +02:00
Boris Faure fccc114082 selection: handle scrolling and left/right margins 2018-09-29 17:21:27 +02:00
Boris Faure de3732d418 termio: extract _handle_query_esc();
simplifies the code and removes dead code
2018-09-23 22:49:31 +02:00
Boris Faure dccd1dec39 use Media_Type instead of int 2018-09-16 17:57:42 +02:00
Boris Faure a696d18165 termio: fix previous commit 2018-06-28 19:25:40 +02:00
Cedric BAIL a5f287e881 termio: make sure that reference to gesture layer are cleaned at the right time.
Reviewers: billiob

Reviewed By: billiob

Subscribers: cedric

Tags: #terminology

Differential Revision: https://phab.enlightenment.org/D6207
2018-06-28 19:25:18 +02:00