termlog

package
v0.0.0-...-f0721d9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: GPL-3.0 Imports: 3 Imported by: 2

Documentation

Overview

Package termlog is a termbox logging package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TermLog

type TermLog struct {
	Buffer []string
	Len    int
	Line   int
	L      sync.Mutex
}

func NewTermLog

func NewTermLog(sz int) TermLog

func (*TermLog) Add

func (tl *TermLog) Add(s string)

func (*TermLog) AddString

func (tl *TermLog) AddString(s string)

func (*TermLog) Extend

func (tl *TermLog) Extend()

func (TermLog) Print

func (tl TermLog) Print()

func (*TermLog) Shift

func (tl *TermLog) Shift(e string)

func (*TermLog) Shrink

func (tl *TermLog) Shrink()

func (*TermLog) Write

func (tl *TermLog) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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