SunOS fixes
This commit is contained in:
parent
3306aebb8c
commit
f5e27ce4c3
2
deps/odoors/ODCom.c
vendored
2
deps/odoors/ODCom.c
vendored
@ -1796,6 +1796,8 @@ no_fossil:
|
|||||||
tio_raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
|
tio_raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
|
||||||
tio_raw.c_cflag &= ~(CSIZE|PARENB);
|
tio_raw.c_cflag &= ~(CSIZE|PARENB);
|
||||||
tio_raw.c_cflag |= CS8;
|
tio_raw.c_cflag |= CS8;
|
||||||
|
tio_raw.c_cc[VMIN] = 1;
|
||||||
|
tio_raw.c_cc[VTIME] = 0;
|
||||||
#else
|
#else
|
||||||
cfmakeraw(&tio_raw);
|
cfmakeraw(&tio_raw);
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,7 +58,7 @@ int forkpty(int *amaster, char *name, void *termp, void *winp) {
|
|||||||
if (name != NULL) {
|
if (name != NULL) {
|
||||||
strcpy(name, pname);
|
strcpy(name, pname);
|
||||||
}
|
}
|
||||||
pts = open(name, O_RDWR);
|
pts = open(pname, O_RDWR);
|
||||||
ioctl(pts, I_PUSH, "ptem");
|
ioctl(pts, I_PUSH, "ptem");
|
||||||
ioctl(pts, I_PUSH, "ldterm");
|
ioctl(pts, I_PUSH, "ldterm");
|
||||||
ioctl(pts, I_PUSH, "ttcompat");
|
ioctl(pts, I_PUSH, "ttcompat");
|
||||||
|
Reference in New Issue
Block a user