console

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleModel

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

func NewConsoleModel

func NewConsoleModel(callback func(string)) ConsoleModel

func (ConsoleModel) Init

func (this ConsoleModel) Init() tea.Cmd

func (*ConsoleModel) SetStyles

func (this *ConsoleModel) SetStyles(promptOutStyle, promptTextStyle lipgloss.Style)

func (ConsoleModel) Update

func (this ConsoleModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ConsoleModel) View

func (this ConsoleModel) View() string

type ConsolePrintMsg

type ConsolePrintMsg struct {
	Text string
}

type ConsoleProgram

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

func NewConsoleProgram

func NewConsoleProgram(configCallback func(ConsoleModel) ConsoleModel, commandCallback func(string), exitCallback func()) *ConsoleProgram

func (*ConsoleProgram) Printf

func (this *ConsoleProgram) Printf(format string, args ...any)

func (*ConsoleProgram) Println

func (this *ConsoleProgram) Println(format string)

func (*ConsoleProgram) Write

func (this *ConsoleProgram) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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