Skip to content

Commit c41363d

Browse files
authored
Merge pull request #963 from swift-everywhere/main
Import Android for isatty
2 parents 8e60b2e + c082ad4 commit c41363d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/swift-format/Utilities/TTY.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
import Foundation
1414

15+
#if os(Android)
16+
import Android
17+
#endif
18+
1519
/// Returns a value indicating whether or not the stream is a TTY.
1620
func isTTY(_ fileHandle: FileHandle) -> Bool {
1721
// The implementation of this function is adapted from `TerminalController.swift` in

0 commit comments

Comments
 (0)