Files
TwoTerm/TermWindowController.mm
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

9.9 KiB