Commit Graph

245 Commits

Author SHA1 Message Date
Boris Faure 0b48853597
reduce scope of variables 2020-04-17 23:09:07 +02:00
Boris Faure 2259519d10
video: no need to force emotion engine anymore 2020-04-12 16:59:43 +02:00
Boris Faure d5d96cb655
termpty: only call ecore_main_fd_handler_active_set() on valid fd
+ reformat
2020-04-02 22:56:26 +02:00
Carsten Haitzler 0420b20ef6 exe fd handling - make bsd handling same on linux ... as it must
now i've seen this on linux... so no more ifdef

@fix
2020-01-19 12:27:53 +00:00
Carsten Haitzler bcb4e27bed close fd's from the host terminal so shell doesnt inherit them all
only inherit the fd's we need/want. use eina_file_close_from()
2019-12-06 08:49:40 +00:00
Boris Faure cfbbe60164
Merge branch 'terminology-1.6' 2019-12-05 19:59:44 +01:00
Boris Faure a782ce61e2
test return of ty_sb_add(). Closes CID1408482 2019-12-05 19:08:05 +01:00
Boris Faure 20b656d1f4
Merge branch 'terminology-1.6' 2019-12-04 23:16:30 +01:00
Boris Faure b76bbbe455
termpty: better handle writes
- Use the event loop
- Check for EINTR/EAGAIN

This fixes pasting large amount of data.

Closes T4712
2019-12-04 23:13:30 +01:00
Boris Faure 6bfd508a58
tyfuzz: instead of writing to /dev/null, just do not write 2019-12-04 21:44:37 +01:00
Boris Faure 1eb9b4cb80
Merge branch 'terminology-1.6' 2019-12-02 23:45:49 +01:00
Boris Faure 99d8436f5a
termpty: retry read() on EINTR 2019-12-02 23:42:38 +01:00
Boris Faure a5aaeefc18
remove condition on if (X) eina_stringshare_del(X) 2019-11-29 23:31:14 +01:00
Boris Faure cf80e70faf
backlog: move related functions to that file 2019-11-24 16:12:26 +01:00
Boris Faure 62302496dc
git mv src/bin/termptysave.{c,h} src/bin/backlog.{c,h} 2019-11-23 18:31:23 +01:00
Boris Faure 77ed56bf00 termpty: reduce log severity 2019-09-08 21:25:52 +02:00
Boris Faure 7b3110d4a2 termpty: attach a Config * to Termpty 2019-06-23 22:02:50 +02:00
Boris Faure 7e677abfb9 termpty: add termpty_color_class_get() 2019-05-26 22:55:22 +02:00
Boris Faure f6d6ce481e termpty: fix unsigned comparison 2019-05-26 22:54:38 +02:00
Carsten Haitzler 03d15389a5 fix sign compare warn - no real bug to see here 2019-05-13 15:03:32 +01: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 0f45747925 termpty: fix _termpty_cell_is_empty()
was not working on cell = {}
2019-03-01 13:23:02 +01:00
Boris Faure 48496b2eb5 termpty: cell is empty if bg is invisible. Closes T7707 2019-02-24 17:06:31 +01:00
Boris Faure e024618dba termpty: compute exact line length in termpty_cellrow_get() 2019-02-21 18:42:28 +01:00
Boris Faure 8841e5259a Merge branch 'terminology-1.3' 2019-01-04 23:37:48 +01:00
Boris Faure 007dfb60e3 termpty: reset circular_offset2 (for the 2nd buffer) to 0 (as it's cleared)
Closes T7543
2019-01-04 23:35:48 +01:00
Boris Faure 5cef3b68b6 tytest: add write buffer to checksum 2018-12-27 22:14:44 +01:00
Boris Faure f83e66a478 add tytest, a tool to add tests on escape sequence parsing 2018-12-27 22:14:44 +01:00
Boris Faure 10f6dc4737 termpty: set environment variable WINDOWID. Closes T7484 2018-12-24 11:10:01 +01:00
Boris Faure dd8e9cedcc move code about hyperlinks to termpty.c to avoid issues with tyfuzz 2018-10-17 22:53:31 +02:00
Boris Faure dc5c291bb9 highlight links on mouseover
+ related fixes
2018-10-13 19:21:19 +02:00
Boris Faure 258cf5c173 add termpty_cell_get() 2018-10-13 18:07:27 +02:00
Boris Faure 05ee717fc0 compute refcount on hyper links 2018-10-13 10:52:50 +02:00
Boris Faure cc83e6b6f2 parse hyperlinks
Ref: T6329
2018-10-13 10:52:50 +02:00
Boris Faure 643e783558 termpty: rewrite conditions on size_t ty->backsize 2018-09-13 07:47:49 +02:00
Boris Faure 0bf5343c34 termpty: simplify code 2018-09-13 07:43:57 +02:00
Boris Faure 780e95a8fb termpty: remove useless code 2018-08-12 19:22:39 +02:00
Boris Faure 0991479fcb try to optimize cell copy
On my stupid benchmark: having tyfuzz parse a 628MB text file (few times
war and peace concatenated) over 10 sessions, it went from 15.2MB/s to
16.8MB/s \o/ That's a 10.5% improvement!
2018-04-24 23:41:18 +02:00
Boris Faure 7c6d581465 Bring back the user title per tab
Summary: T6719

Reviewers: billiob

Reviewed By: billiob

Differential Revision: https://phab.enlightenment.org/D5852
2018-04-22 17:27:14 +02:00
Carsten Haitzler 1a55a67654 termpty - set ty_hand to null if returning cancel which dels the fdhand
this avoids later accidentally accessing an invlid hd handler.

@fix
2018-03-26 23:18:31 +09:00
Boris Faure dad9e0db58 remove compatibility #ifs to work with EFL < 1.16 2018-03-13 18:58:41 +01:00
Boris Faure d7432a52d6 move input handling to win.c 2018-02-05 00:07:47 +01:00
Carsten Haitzler 8cfa269b54 tysend - optimize sending - pretty much double the speed
yes. it's still inefficient because we transfer in ascii-ized nibbles
(4 bits) within a utf8 stream that becoems a 32bit per char unicode
buffer then back to utf8 before being "parsed" as a command etc. etc.
... it's not brilliant for transferring binary data. it's horrible
actually. but at least i've dropped overhead for some of the large
escape handling code.

this increases buffer size to 32k per block sent, and have the
terminal escape/buffer handling track if a zero byte exists in the
buffer at all to avoid hunting for one if none is there, making
terminology escape handling much more efficient for large escapes and
buffers.
2017-12-18 15:32:02 +09:00
Boris Faure 496a5f178e have only one concept of title. Ref T5704 2017-08-28 21:41:21 +02:00
Boris Faure 38da9b2ded correctly handle -T option. Ref T5704 2017-08-28 21:41:10 +02:00
Boris Faure acbf3387fa fix selections in the backlog. Closes T5743
In the backlog, every cell but the last one has the autowrapped flag set.
_termpty_cellrow_from_beacon_get() now returns a length in the
"screen space".
2017-08-26 18:51:22 +02:00
Boris Faure 6315ed2949 termpty: remove termstate.had_cr since it's unused 2017-08-21 23:46:28 +02:00
Boris Faure 6f1a2dd452 constify 2017-07-06 21:37:56 +02:00
Boris Faure b0226726f8 termpty: correctly handle DECFRA wrt SGR 0 2017-06-26 23:36:23 +02:00
Boris Faure 7ac685b68c termpty: DECERA only changes codepoints 2017-06-26 21:58:59 +02:00