diff options
| author | sinner <[email protected]> | 2026-05-07 23:00:27 +0000 |
|---|---|---|
| committer | sinner <[email protected]> | 2026-05-07 23:01:04 +0000 |
| commit | 742d340eaa8bd93f6814a1dd375a22152f4404ad (patch) | |
| tree | 076452061b41b7b2d2a8cdffd0836171c466e5fb /internal/utils/tty_windows.go | |
| parent | a5f907854f29e1c267ad30d1dfe85c2c47f5ac48 (diff) | |
| download | dborg-742d340eaa8bd93f6814a1dd375a22152f4404ad.tar.gz dborg-742d340eaa8bd93f6814a1dd375a22152f4404ad.zip | |
feat: add stdin support and output redirection for batch queries across all commandsv1.1.2
Diffstat (limited to 'internal/utils/tty_windows.go')
| -rw-r--r-- | internal/utils/tty_windows.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/utils/tty_windows.go b/internal/utils/tty_windows.go new file mode 100644 index 0000000..f40dbda --- /dev/null +++ b/internal/utils/tty_windows.go @@ -0,0 +1,13 @@ +//go:build windows + +package utils + +import "os" + +func OpenTTY() (*os.File, error) { + conin, err := os.OpenFile("CONIN$", os.O_RDWR, 0) + if err != nil { + return nil, err + } + return conin, nil +} |
