Documentation ¶
Index ¶
Constants ¶
View Source
const ESC = 27
ESC is the ASCII code for escape character
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressLog ¶
type ProgressLog struct { Writer *Writer // terminal writer todo defer Flush // contains filtered or unexported fields }
func NewPLog ¶
func NewPLog(cr *wss.ConnRecord) *ProgressLog
func (*ProgressLog) SetLogBuffer ¶ added in v0.3.1
func (p *ProgressLog) SetLogBuffer(r *wss.ConnRecord)
set progress log(connection table), the connection table is write into p.Write (p.Write is a bytes buffer, only really output to screen when calling Flush).
type Writer ¶
Writer will updates the terminal when flush is called.
func (*Writer) ClearLines ¶ added in v0.5.0
func (w *Writer) ClearLines()
wrapper function to call clearLines on different platform
func (*Writer) NormalWrite ¶
Write write contents to the writer's io writer.
Click to show internal directories.
Click to hide internal directories.