commit | 88fcf87c53dc521a130a7c903a7248a420ae3126 | [log] [tgz] |
---|---|---|
author | qxxt <57898942+qxxt@users.noreply.github.com> | Tue Jun 27 14:30:13 2023 +0000 |
committer | Gopher Robot <gobot@golang.org> | Tue Jul 04 21:01:22 2023 +0000 |
tree | 4dbd47dae7bea11084f795999efb8e990d722280 | |
parent | f6de4a13df88c8a1db88fc651737d7ff8b144a5f [diff] |
term: consistently return zeroes on GetSize error All other platform have return value of 0 for error when trying to get the terminal size while unix have -1. That makes it hard to catch whether the value passed from it was inserted on purpose. Change-Id: If47d07bd2d4f6cd439ad0ff4958e4095c8e4df9d GitHub-Last-Rev: 39cb14de33786844d097bc1d51bc667da8785ed9 GitHub-Pull-Request: golang/term#6 Reviewed-on: https://go-review.googlesource.com/c/term/+/506235 Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.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.