xcli

package
v0.5.15 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalPrintView

func TerminalPrintView(callback func(updater *TerminalPrint) error) (err error)

TerminalPrintView 终端输出显示 callback 是回调函数,用于控制每一帧的显示内容 结束时,通过调用 callback 参数的 Stop() 方法来退出全屏更新

Types

type TerminalPrint

type TerminalPrint struct {
	// contains filtered or unexported fields
}

TerminalPrint 定义全屏更新器

func (*TerminalPrint) DrawText

func (u *TerminalPrint) DrawText(x, y int, text string)

DrawText 在屏幕上绘制文本

func (*TerminalPrint) Stop

func (u *TerminalPrint) Stop()

Stop 停止全屏更新

Jump to

Keyboard shortcuts

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