output

package
v0.0.0-...-d37e888 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ESC = 27

ESC is the ASCII code for escape character.

Variables

View Source
var (
	ColumnWidth = 40
	MaxRows     = 25
)

Functions

func ClearLines

func ClearLines(count int)

ClearLines erases the last count lines in the terminal window.

func DrawTable

func DrawTable(table string, clear int)

DrawTable prints the table line by line, clearing existing lines first.

func ExecutionTable

func ExecutionTable(pc int, script, stack, altStack, witness []string,
	tags map[string]string) string

func FixedWidth

func FixedWidth(w int, s string, tags map[string]string) string

func ScriptToString

func ScriptToString(script []byte) []string

func StackToString

func StackToString(stack [][]byte) []string

func VmScriptToString

func VmScriptToString(vm *txscript.Engine, scriptIdx int) []string

func WitnessToString

func WitnessToString(witness [][]byte) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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