...

Package tty

import "github.com/mattn/go-tty"
Overview
Index
Subdirectories

Overview ▾

type TTY

type TTY struct {
    // contains filtered or unexported fields
}

func Open

func Open() (*TTY, error)

func OpenDevice

func OpenDevice(path string) (*TTY, error)

func (*TTY) Buffered

func (tty *TTY) Buffered() bool

func (*TTY) Close

func (tty *TTY) Close() error

func (*TTY) Input

func (tty *TTY) Input() *os.File

func (*TTY) MustRaw

func (tty *TTY) MustRaw() func() error

func (*TTY) Output

func (tty *TTY) Output() *os.File

func (*TTY) Raw

func (tty *TTY) Raw() (func() error, error)

func (*TTY) ReadPassword

func (tty *TTY) ReadPassword() (string, error)

func (*TTY) ReadPasswordClear

func (tty *TTY) ReadPasswordClear() (string, error)

func (*TTY) ReadPasswordNoEcho

func (tty *TTY) ReadPasswordNoEcho() (string, error)

func (*TTY) ReadRune

func (tty *TTY) ReadRune() (rune, error)

func (*TTY) ReadString

func (tty *TTY) ReadString() (string, error)

func (*TTY) SIGWINCH

func (tty *TTY) SIGWINCH() <-chan WINSIZE

func (*TTY) Size

func (tty *TTY) Size() (int, int, error)

func (*TTY) SizePixel

func (tty *TTY) SizePixel() (int, int, int, int, error)

type WINSIZE

type WINSIZE struct {
    W int
    H int
}

Subdirectories

Name Synopsis
..
ttyutil