commit | de623e64d2a6562fa463152da80477d4aa07fca0 | [log] [tgz] |
---|---|---|
author | makeworld <25111343+makeworld-the-better-one@users.noreply.github.com> | Sat Dec 26 19:06:28 2020 +0000 |
committer | Tobias Klauser <tobias.klauser@gmail.com> | Wed Mar 17 15:32:31 2021 +0000 |
tree | 02605b1ffcd391dbb5ef735f987072004589fd41 | |
parent | 6a3ed077a48de71621ad530f9078fffa0bc0ce32 [diff] |
term: use stdin file descriptor in comment Using a `fd` of `0` on Windows will crash with `panic: The handle is invalid.` By getting the file descriptor from `os.Stdin`, this can be avoided. Change-Id: Ie7915b1e0e1018fcb92b6ba006fe85a9aee439ad GitHub-Last-Rev: 4e56574120c1a5351f180f3290bc9407f3d6976f GitHub-Pull-Request: golang/term#3 Reviewed-on: https://go-review.googlesource.com/c/term/+/280232 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This repository provides Go terminal and console support packages.
The easiest way to install is to run go get -u golang.org/x/term
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/term
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the term repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/term:” in the subject line, so it is easy to find.