mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-02-04 16:35:04 +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;
|
int fd;
|
||||||
struct termios term;
|
struct termios term;
|
||||||
struct winsize ws = [_emulator defaultSize];
|
struct winsize ws = [_emulator defaultSize];
|
||||||
//int flags;
|
int flags;
|
||||||
|
|
||||||
memset(&term, 0, sizeof(term));
|
memset(&term, 0, sizeof(term));
|
||||||
|
|
||||||
@ -153,10 +153,11 @@
|
|||||||
// child
|
// child
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
// non-blocking io.
|
||||||
if (fcntl(fd, F_GETFL, &flags) < 0) flags = 0;
|
if (fcntl(fd, F_GETFL, &flags) < 0) flags = 0;
|
||||||
fcntl(fd, F_SETFL, flags | O_NONBLOCK);
|
fcntl(fd, F_SETFL, flags | O_NONBLOCK);
|
||||||
*/
|
|
||||||
|
|
||||||
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];
|
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user