Help us shape the future of Go! Take the 2026 Go Developer Survey

iscygpty

package module
v0.0.0-...-ef1d38d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2016 License: MIT Imports: 1 Imported by: 2

README

go-iscygpty

Golang port of iscygpty which is a part of ptycheck. Check if a program running on mintty (or some other terminal) on Cygwin/MSYS.

API

Only three functions are provided.

  • GetPipeName()
  • IsCygwinPty()
  • IsCygwinPtyUsed()

See _exapmle/example.go for usage.

License

The MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPipeName

func GetPipeName(fd uintptr) string

GetPipeName returns the name of the file descriptor if it is a named pipe on Windows. Otherwise it returns an empty string.

func IsCygwinPty

func IsCygwinPty(fd uintptr) bool

IsCygwinPty returns true if the file descriptor is a Cygwin/MSYS pty.

func IsCygwinPtyUsed

func IsCygwinPtyUsed() bool

IsCygwinPtyUsed returns true if Cygwin/MSYS pty is used.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL