Documentation ¶
Index ¶
- func Close() error
- func GetCursorRow() (int, error)
- func GetTerminalSize() (int, int)
- func Refresh() error
- func TrimToVisualLength(message string, length int) string
- func VisualLength(str string) int
- type BottomFrame
- func (frame *BottomFrame) Append() (*Line, error)
- func (frame *BottomFrame) AppendTrail(str string)
- func (frame *BottomFrame) Clear() error
- func (frame *BottomFrame) ClearAndClose() error
- func (frame *BottomFrame) Close() error
- func (frame *BottomFrame) Footer() *Line
- func (frame *BottomFrame) Header() *Line
- func (frame *BottomFrame) Insert(index int) (*Line, error)
- func (frame *BottomFrame) Lines() []*Line
- func (frame *BottomFrame) Prepend() (*Line, error)
- func (frame *BottomFrame) Remove(line *Line) error
- func (frame *BottomFrame) Wait()
- type FixedFrame
- func (frame *FixedFrame) Append() (*Line, error)
- func (frame *FixedFrame) AppendTrail(str string)
- func (frame *FixedFrame) Clear() error
- func (frame *FixedFrame) ClearAndClose() error
- func (frame *FixedFrame) Close() error
- func (frame *FixedFrame) Footer() *Line
- func (frame *FixedFrame) Header() *Line
- func (frame *FixedFrame) Insert(index int) (*Line, error)
- func (frame *FixedFrame) Lines() []*Line
- func (frame *FixedFrame) Move(rows int) error
- func (frame *FixedFrame) Prepend() (*Line, error)
- func (frame *FixedFrame) Remove(line *Line) error
- func (frame *FixedFrame) Wait()
- type Line
- func (line *Line) Clear() error
- func (line *Line) ClearAndClose() error
- func (line *Line) Close() error
- func (line *Line) Id() uuid.UUID
- func (line *Line) IsClosed() bool
- func (line *Line) Open() error
- func (line *Line) Read(buff []byte) (int, error)
- func (line *Line) Row() int
- func (line Line) String() string
- func (line *Line) Write(buff []byte) (int, error)
- func (line *Line) WriteAndClose(buff []byte) (int, error)
- func (line *Line) WriteString(str string) error
- func (line *Line) WriteStringAndClose(str string) (int, error)
- type TopFrame
- func (frame *TopFrame) Append() (*Line, error)
- func (frame *TopFrame) Clear() error
- func (frame *TopFrame) ClearAndClose() error
- func (frame *TopFrame) Close() error
- func (frame *TopFrame) Footer() *Line
- func (frame *TopFrame) Header() *Line
- func (frame *TopFrame) Insert(index int) (*Line, error)
- func (frame *TopFrame) Lines() []*Line
- func (frame *TopFrame) Prepend() (*Line, error)
- func (frame *TopFrame) Remove(line *Line) error
- func (frame *TopFrame) Wait()
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCursorRow ¶
todo: will this be supported on windows?... https://github.com/nsf/termbox-go/blob/master/termbox_windows.go currently assumed VT100 compatible emulator
func GetTerminalSize ¶
func TrimToVisualLength ¶
func VisualLength ¶
Types ¶
type BottomFrame ¶
type BottomFrame struct {
// contains filtered or unexported fields
}
func NewBottomFrame ¶
func NewBottomFrame(rows int, hasHeader, hasFooter bool, includeTrailOnRemove bool) *BottomFrame
func (*BottomFrame) Append ¶
func (frame *BottomFrame) Append() (*Line, error)
func (*BottomFrame) AppendTrail ¶
func (frame *BottomFrame) AppendTrail(str string)
func (*BottomFrame) Clear ¶
func (frame *BottomFrame) Clear() error
func (*BottomFrame) ClearAndClose ¶
func (frame *BottomFrame) ClearAndClose() error
func (*BottomFrame) Close ¶
func (frame *BottomFrame) Close() error
func (*BottomFrame) Footer ¶
func (frame *BottomFrame) Footer() *Line
func (*BottomFrame) Header ¶
func (frame *BottomFrame) Header() *Line
func (*BottomFrame) Lines ¶
func (frame *BottomFrame) Lines() []*Line
func (*BottomFrame) Prepend ¶
func (frame *BottomFrame) Prepend() (*Line, error)
func (*BottomFrame) Remove ¶
func (frame *BottomFrame) Remove(line *Line) error
func (*BottomFrame) Wait ¶
func (frame *BottomFrame) Wait()
type FixedFrame ¶
type FixedFrame struct {
// contains filtered or unexported fields
}
func NewFixedFrame ¶
func NewFixedFrame(rows int, hasHeader, hasFooter, includeTrailOnRemove bool) *FixedFrame
func NewFixedFrameAt ¶
func NewFixedFrameAt(rows int, hasHeader, hasFooter, includeTrailOnRemove bool, destinationRow int) *FixedFrame
func (*FixedFrame) Append ¶
func (frame *FixedFrame) Append() (*Line, error)
func (*FixedFrame) AppendTrail ¶
func (frame *FixedFrame) AppendTrail(str string)
func (*FixedFrame) Clear ¶
func (frame *FixedFrame) Clear() error
func (*FixedFrame) ClearAndClose ¶
func (frame *FixedFrame) ClearAndClose() error
func (*FixedFrame) Close ¶
func (frame *FixedFrame) Close() error
func (*FixedFrame) Footer ¶
func (frame *FixedFrame) Footer() *Line
func (*FixedFrame) Header ¶
func (frame *FixedFrame) Header() *Line
func (*FixedFrame) Lines ¶
func (frame *FixedFrame) Lines() []*Line
func (*FixedFrame) Move ¶
func (frame *FixedFrame) Move(rows int) error
func (*FixedFrame) Prepend ¶
func (frame *FixedFrame) Prepend() (*Line, error)
func (*FixedFrame) Remove ¶
func (frame *FixedFrame) Remove(line *Line) error
func (*FixedFrame) Wait ¶
func (frame *FixedFrame) Wait()
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
func (*Line) ClearAndClose ¶
func (*Line) WriteString ¶
type TopFrame ¶
type TopFrame struct {
// contains filtered or unexported fields
}
func NewTopFrame ¶
func (*TopFrame) ClearAndClose ¶
Click to show internal directories.
Click to hide internal directories.