tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chat

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

func NewChat

func NewChat(mach *am.Machine, sysMsgs []string, enableClockmoji bool) (*Chat, error)

func (*Chat) AddMsg

func (c *Chat) AddMsg(msg string, from shared.From)

func (*Chat) AnsweredState

func (c *Chat) AnsweredState(e *am.Event)

func (*Chat) AnyState

func (c *Chat) AnyState(e *am.Event)

func (*Chat) InputPendingEnd

func (c *Chat) InputPendingEnd(e *am.Event)

func (*Chat) InputPendingState

func (c *Chat) InputPendingState(e *am.Event)

func (*Chat) PromptEnter

func (c *Chat) PromptEnter(e *am.Event) bool

func (*Chat) PromptState

func (c *Chat) PromptState(e *am.Event)

func (*Chat) RequestingEnd

func (c *Chat) RequestingEnd(e *am.Event)

func (*Chat) RequestingState

func (c *Chat) RequestingState(e *am.Event)

func (*Chat) Run

func (c *Chat) Run() error

func (*Chat) UIButtonPressState

func (c *Chat) UIButtonPressState(e *am.Event)

func (*Chat) UIReadyState

func (c *Chat) UIReadyState(e *am.Event)

type Msg

type Msg struct {
	From      shared.From
	Content   string
	CreatedAt time.Time
}

Jump to

Keyboard shortcuts

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