mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-01-26 03:31:12 +00:00
set non-blocking io.
git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@2472 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
91ac76dfb6
commit
7edca6dc13
@ -74,7 +74,7 @@
|
||||
int fd;
|
||||
struct termios term;
|
||||
struct winsize ws = [_emulator defaultSize];
|
||||
//int flags;
|
||||
int flags;
|
||||
|
||||
memset(&term, 0, sizeof(term));
|
||||
|
||||
@ -153,10 +153,11 @@
|
||||
// child
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
// non-blocking io.
|
||||
if (fcntl(fd, F_GETFL, &flags) < 0) flags = 0;
|
||||
fcntl(fd, F_SETFL, flags | O_NONBLOCK);
|
||||
*/
|
||||
|
||||
|
||||
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user