util

package
v0.0.0-...-1826ff0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugString

func DebugString(buf []byte) string

func GetSigwinch

func GetSigwinch() os.Signal

func RestoreTerminal

func RestoreTerminal(state *State) error

func TransformInput

func TransformInput(s []byte) []byte

Types

type CommandFunc

type CommandFunc func() *string

func GetCommandFunc

func GetCommandFunc(c *types.Connection, startWait *sync.Cond, moreCommands CommandFunc) CommandFunc

Returns a function that will return any commands, or nil when no other commands are defined. It will also signal the passed Condition when if are no commands left and the Condition is not nil.

type ReplaceWriter

type ReplaceWriter struct {
	Writer   io.Writer
	Replacer *strings.Replacer
}

func (ReplaceWriter) Write

func (w ReplaceWriter) Write(p []byte) (n int, err error)

type State

type State terminal.State

func SetupTerminal

func SetupTerminal() (*State, error)

Jump to

Keyboard shortcuts

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