28 Commits

Author SHA1 Message Date
Kelvin Sherlock
42b9206abe replace grand-central io/pid monitoring with a dedicated thread and kevents.
based on testing, the pty EOF is never flagged. Instead, exit the thread when the child pid dies.
2018-01-29 21:24:15 -05:00
Kelvin Sherlock
38dad13969 dispatch_io_create() is supposed to be the correct way to read from a stream. However, it doesn't seem to work and I believe it's due to poll() not working with pseudo terminals in OS X.
Leaving the code in just for fun.

Underlying issue - when the pty closes, the block doesn't always get notified so the fd doesn't close until the window closes.
2018-01-27 08:59:40 -05:00
Kelvin Sherlock
a6408fc242 in high sierra, estimated read size always seems to be 0. handle that situation. 2018-01-18 15:43:13 -05:00
Kelvin Sherlock
de8810b8e2 name edits. 2017-11-30 14:43:04 -05:00
Kelvin Sherlock
8b59e647d0 -displaySize
git-svn-id: svn://qnap.local/TwoTerm/trunk@3179 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2017-02-25 18:28:55 +00:00
Kelvin Sherlock
451e5e4bed processData no longer const
cursor blind thread no longer killed/restarted when cursor goes invisible.

git-svn-id: svn://qnap.local/TwoTerm/trunk@3175 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2017-02-21 03:22:17 +00:00
Kelvin Sherlock
0291b21733 simplify screen, rewrite gno console.
git-svn-id: svn://qnap.local/TwoTerm/branches/fix-gno-scrolling-region@3162 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2017-02-16 00:26:45 +00:00
Kelvin Sherlock
70b38025ba minor updates.
git-svn-id: svn://qnap.local/TwoTerm/trunk@3154 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2017-02-05 18:15:34 +00:00
Kelvin Sherlock
1fec3f120c merge updated effects.
git-svn-id: svn://qnap.local/TwoTerm/trunk@3146 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2016-09-28 03:13:50 +00:00
Kelvin Sherlock
ae61aaa524 fix the window title.
git-svn-id: svn://qnap.local/TwoTerm/trunk@3111 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2016-07-08 00:54:52 +00:00
Kelvin Sherlock
edee5557b3 remove dead code, fix window bottom margin.
git-svn-id: svn://qnap.local/TwoTerm/trunk@3110 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2016-07-06 19:12:51 +00:00
Kelvin Sherlock
5ef9d70940 remove ChildMonitor
git-svn-id: svn://qnap.local/TwoTerm/branches/gcd_dispatch@3107 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2016-07-06 17:37:15 +00:00
Kelvin Sherlock
58499dda23 use gcd to read child data and monitor if child is still alive.
git-svn-id: svn://qnap.local/TwoTerm/branches/gcd_dispatch@3105 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2016-07-06 17:15:13 +00:00
Kelvin Sherlock
7edca6dc13 set non-blocking io.
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2472 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2012-08-04 22:36:41 +00:00
Kelvin Sherlock
eede1abbca update titlebar
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2341 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-12-23 20:35:00 +00:00
Kelvin Sherlock
a5bf815f40 window images
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2339 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-12-21 01:40:16 +00:00
Kelvin Sherlock
741dfb95c6 borderless window
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2338 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-11-26 17:04:20 +00:00
Kelvin Sherlock
4c09c17029 change settings for visual effects
git-svn-id: svn://qnap.local/TwoTerm/trunk@2025 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-02-14 16:34:05 +00:00
Kelvin Sherlock
480d7ef93a use Child monitor for incoming data/process dead.
git-svn-id: svn://qnap.local/TwoTerm/trunk@2003 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-01-20 02:36:06 +00:00
Kelvin Sherlock
65c45db2dc fix minimum size, set resize incremements.
git-svn-id: svn://qnap.local/TwoTerm/trunk@1996 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-01-17 02:34:48 +00:00
Kelvin Sherlock
6e4b2a6e51 animated resize.
git-svn-id: svn://qnap.local/TwoTerm/trunk@1983 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2011-01-11 04:35:45 +00:00
Kelvin Sherlock
1658fd2dd6 git-svn-id: svn://qnap.local/TwoTerm/trunk@1981 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2011-01-11 00:29:59 +00:00
Kelvin Sherlock
6bd75980fa git-svn-id: svn://qnap.local/TwoTerm/trunk@1890 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2010-12-21 05:17:15 +00:00
Kelvin Sherlock
98e13cb172 git-svn-id: svn://qnap.local/TwoTerm/trunk@1888 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2010-12-20 23:37:02 +00:00
Kelvin Sherlock
53d6e2db54 git-svn-id: svn://qnap.local/TwoTerm/trunk@1887 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2010-12-18 17:40:58 +00:00
Kelvin Sherlock
7d5ddda36d git-svn-id: svn://qnap.local/TwoTerm/trunk@1792 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2010-10-06 00:39:09 +00:00
Kelvin Sherlock
9c9741dcc8 fix window title
git-svn-id: svn://qnap.local/TwoTerm/trunk@1791 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
2010-10-05 19:05:42 +00:00
Kelvin Sherlock
56fa086c1f git-svn-id: svn://qnap.local/TwoTerm/trunk@1790 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 2010-10-05 18:56:45 +00:00