term

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	PreviousState *terminal.State
	StdinFd       int
	Paused        bool
	Reset         bool
}

Session tracks the current terminal session.

func NewSession

func NewSession() *Session

NewSession creates a new session

func (*Session) End

func (s *Session) End()

End returns the terminal to its state from before hlstail started.

func (*Session) GetCliWidth

func (s *Session) GetCliWidth() int

GetCliWidth returns the available screen space

func (*Session) MakeRaw

func (s *Session) MakeRaw() error

MakeRaw sets the terminal in raw mode.

func (*Session) Start

func (s *Session) Start()

Start will setup the stdout for printing.

Jump to

Keyboard shortcuts

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