Differences From Artifact [0a4af80293]:
- File src/OFStdIOStream.m — part of check-in [40f58c637b] at 2020-05-24 15:54:16 on branch trunk — Add terminal control methods for Windows (user: js, size: 10300) [annotate] [blame] [check-ins using]
To Artifact [26a72da19c]:
- File src/OFStdIOStream.m — part of check-in [d5eb0384c5] at 2020-05-28 00:15:05 on branch trunk — OFStdIOStream: Add -[hasTerminal] (user: js, size: 10423) [annotate] [blame] [check-ins using] [more...]
︙ | |||
381 382 383 384 385 386 387 388 389 390 391 392 393 394 | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | + + + + + + + + + | { } - (unsigned int)retainCount { return OF_RETAIN_COUNT_MAX; } - (bool)hasTerminal { #if defined(HAVE_ISATTY) && !defined(OF_AMIGAOS) return isatty(_fd); #else return false; #endif } - (int)columns { #if defined(HAVE_SYS_IOCTL_H) && defined(TIOCGWINSZ) && !defined(OF_AMIGAOS) struct winsize ws; if (ioctl(_fd, TIOCGWINSZ, &ws) != 0) |
︙ |