console

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LibraryName = "scriptling.console"

Variables

This section is empty.

Functions

func NewLibrary

func NewLibrary() *object.Library

NewLibrary creates the scriptling.console library.

func Register

func Register(registrar interface{ RegisterLibrary(*object.Library) })

Register registers the console library with a scriptling instance.

func SetSubmit added in v0.3.0

func SetSubmit(inst *object.Instance, fn func(ctx context.Context, text string))

SetSubmit wires an external submit handler into a Console instance, replacing any previously registered on_submit callback.

func TUIFrom added in v0.3.0

func TUIFrom(inst *object.Instance) *tui.TUI

TUIFrom extracts the underlying *tui.TUI from a Console instance. Used by external packages (e.g. scriptling.messaging.console) to bridge into the TUI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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