tty

package
v0.0.0-...-8666326 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2014 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package tty wraps tty ioctls.

Index

Constants

View Source
const (
	TCFLSH     = 0x540b
	TCIFLUSH   = 0x0
	TIOCGWINSZ = 0x5413
)

Variables

This section is empty.

Functions

func FlushInput

func FlushInput(fd int) error

func Ioctl

func Ioctl(fd int, req int, arg uintptr) error

Types

type Termios

type Termios syscall.Termios

func NewTermiosFromFd

func NewTermiosFromFd(fd int) (*Termios, error)

func (*Termios) ApplyToFd

func (term *Termios) ApplyToFd(fd int) error

func (*Termios) Copy

func (term *Termios) Copy() *Termios

func (*Termios) FromFd

func (term *Termios) FromFd(fd int) error

func (*Termios) SetEcho

func (term *Termios) SetEcho(v bool)

func (*Termios) SetIcanon

func (term *Termios) SetIcanon(v bool)

func (*Termios) SetMin

func (term *Termios) SetMin(v uint8)

func (*Termios) SetTime

func (term *Termios) SetTime(v uint8)

type Winsize

type Winsize struct {
	Row    uint16
	Col    uint16
	Xpixel uint16
	Ypixel uint16
}

func GetWinsize

func GetWinsize(fd int) Winsize

Jump to

Keyboard shortcuts

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