Mainflux.mainflux/vendor/github.com/moby/term
Dušan Borovčanin 412593ae94
NOISSUE - Update dependencies (#1838)
* Update dependencies

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

* Update dependencies

Fix Timescale Reader bug.

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

* Revert influxdb-reader changes

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

* Update dependencies to latest supported versions

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>

---------

Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2023-07-06 20:44:12 +02:00
..
windows NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
.gitignore MF-1378 - Update dependencies (#1379) 2021-05-20 20:53:56 +02:00
LICENSE MF-1378 - Update dependencies (#1379) 2021-05-20 20:53:56 +02:00
README.md MF-1378 - Update dependencies (#1379) 2021-05-20 20:53:56 +02:00
ascii.go MF-1378 - Update dependencies (#1379) 2021-05-20 20:53:56 +02:00
doc.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
proxy.go MF-1378 - Update dependencies (#1379) 2021-05-20 20:53:56 +02:00
term.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
term_unix.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
term_windows.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
termios_bsd.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
termios_nonbsd.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
termios_unix.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00
termios_windows.go NOISSUE - Update dependencies (#1838) 2023-07-06 20:44:12 +02:00

README.md

term - utilities for dealing with terminals

Test GoDoc Go Report Card

term provides structures and helper functions to work with terminal (state, sizes).

Using term

package main

import (
	"log"
	"os"

	"github.com/moby/term"
)

func main() {
	fd := os.Stdin.Fd()
	if term.IsTerminal(fd) {
		ws, err := term.GetWinsize(fd)
		if err != nil {
			log.Fatalf("term.GetWinsize: %s", err)
		}
		log.Printf("%d:%d\n", ws.Height, ws.Width)
	}
}

Contributing

Want to hack on term? Docker's contributions guidelines apply.

Code and documentation copyright 2015 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons.