Skip to content

Commit b9540ca

Browse files
Copilotshueybubbles
andcommitted
Consolidate platform-specific console redirection code into a single file
Co-authored-by: shueybubbles <[email protected]>
1 parent 36accd3 commit b9540ca

2 files changed

Lines changed: 1 addition & 34 deletions

File tree

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
//go:build !windows
5-
// +build !windows
6-
74
package console
85

96
import (
@@ -24,7 +21,7 @@ func isStdinRedirected() bool {
2421
return true
2522
}
2623

27-
// Double-check using isatty
24+
// Double-check using term.IsTerminal
2825
fd := int(os.Stdin.Fd())
2926
return !term.IsTerminal(fd)
3027
}

pkg/console/console_windows.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)