gormal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// (c_iflag)
	IGNBRK IFlag = unix.IGNBRK
	BRKINT IFlag = unix.BRKINT
	IGNPAR IFlag = unix.IGNPAR
	PARMRK IFlag = unix.PARMRK
	INPCK  IFlag = unix.INPCK
	ISTRIP IFlag = unix.ISTRIP
	INLCR  IFlag = unix.INLCR
	IGNCR  IFlag = unix.IGNCR
	ICRNL  IFlag = unix.ICRNL
	IXON   IFlag = unix.IXON
	IXOFF  IFlag = unix.IXOFF

	// (c_oflag)
	OPOST OFlag = unix.OPOST
	ONLCR OFlag = unix.ONLCR

	// (c_cflag)
	CSIZE  CFlag = unix.CSIZE
	CS5    CFlag = unix.CS5
	CS6    CFlag = unix.CS6
	CS7    CFlag = unix.CS7
	CS8    CFlag = unix.CS8
	CSTOPB CFlag = unix.CSTOPB
	CREAD  CFlag = unix.CREAD
	PARENB CFlag = unix.PARENB
	PARODD CFlag = unix.PARODD
	HUPCL  CFlag = unix.HUPCL
	CLOCAL CFlag = unix.CLOCAL

	// (c_lflag)
	ISIG   LFlag = unix.ISIG
	ICANON LFlag = unix.ICANON
	ECHO   LFlag = unix.ECHO
	ECHOE  LFlag = unix.ECHOE
	ECHOK  LFlag = unix.ECHOK
	ECHONL LFlag = unix.ECHONL
	NOFLSH LFlag = unix.NOFLSH
	TOSTOP LFlag = unix.TOSTOP
	IEXTEN LFlag = unix.IEXTEN
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CFlag

type CFlag uint32

func (CFlag) GetFlagName

func (c CFlag) GetFlagName() string

type Flag

type Flag interface {
	GetFlagName() string
	// contains filtered or unexported methods
}

type Gormal

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

func NewGormalFromDesctiptor

func NewGormalFromDesctiptor(fd uintptr) (*Gormal, error)

func NewGormalStdErr

func NewGormalStdErr() (*Gormal, error)

func NewGormalStdOut

func NewGormalStdOut() (*Gormal, error)

func NewGormalStdin

func NewGormalStdin() (*Gormal, error)

func (*Gormal) AppendFlag

func (gorm *Gormal) AppendFlag(flag Flag) error

func (*Gormal) AppendFlagToSection

func (gorm *Gormal) AppendFlagToSection(flag Flag, section string) error

func (*Gormal) CheckFlag

func (gorm *Gormal) CheckFlag(flag Flag) (bool, error)

func (*Gormal) CheckFlagInSection

func (gorm *Gormal) CheckFlagInSection(flag Flag, section string) (bool, error)

func (*Gormal) CheckRowFlaginSection

func (gorm *Gormal) CheckRowFlaginSection(uFlag uint32, section string) (bool, error)

func (*Gormal) DropFlag

func (gorm *Gormal) DropFlag(flag Flag) error

func (*Gormal) DropFlagFromSection

func (gorm *Gormal) DropFlagFromSection(flag Flag, section string) error

func (*Gormal) GetTermios

func (gorm *Gormal) GetTermios() *unix.Termios

func (*Gormal) MapToTermios

func (gorm *Gormal) MapToTermios(t *unix.Termios)

func (*Gormal) Restore

func (gorm *Gormal) Restore() error

func (*Gormal) RowAppendFlagToSection

func (gorm *Gormal) RowAppendFlagToSection(uFlag uint32, section string) error

func (*Gormal) RowDropFlagFromSection

func (gorm *Gormal) RowDropFlagFromSection(uFlag uint32, section string) error

func (*Gormal) TemiosToMap

func (gorm *Gormal) TemiosToMap(t *unix.Termios)

type IFlag

type IFlag uint32

func (IFlag) GetFlagName

func (i IFlag) GetFlagName() string

type LFlag

type LFlag uint32

func (LFlag) GetFlagName

func (l LFlag) GetFlagName() string

type OFlag

type OFlag uint32

func (OFlag) GetFlagName

func (o OFlag) GetFlagName() string

Jump to

Keyboard shortcuts

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