# isatty

Published articles for isatty.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How to Detect Whether a Go Terminal Is a Console or a Pipe

DevFeed: [How to Detect Whether a Go Terminal Is a Console or a Pipe](<https://devfeed.tech/articles/in-go-is-your-terminal-a-console-or-a-pipe-isatty-golang-35418.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/in-go-is-your-terminal-a-console-or-a-pipe-isatty-golang/>)

Author: Graham King

Published: 2012-01-03T17:08:20Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [console](<https://devfeed.tech/topics/console.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>)

Tags: [console](<https://devfeed.tech/tags/console.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [isatty](<https://devfeed.tech/tags/isatty.md>), [software](<https://devfeed.tech/tags/software.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

This article discusses how to determine whether a terminal in Go is connected to a console or a pipe. It also notes updates to the terminal package used by the example.

### Source excerpt

Is my terminal connected to the console, or to a pipe? For example: You might need to: Updated May 2012 to use the exp/terminal package. Updated Dec 2014, terminal moved to crypto Updated Aug 2023, terminal moved to x/term. Thanks Ewen!