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: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址