mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-02-01 12:30:16 +00: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.
…
Languages
Objective-C++
64.5%
Objective-C
23.1%
C++
10.9%
C
1.5%