logView

package
v0.0.0-...-0a572d1 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 Model

type Model struct {
	Enabled        bool
	VerticalOffset int
	Follow         bool
	// contains filtered or unexported fields
}

func New

func New(width, height int, options ...Option) *Model

func (*Model) Disable

func (m *Model) Disable()

func (*Model) Enable

func (m *Model) Enable()

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

func (*Model) Write

func (m *Model) Write(p []byte) (n int, err error)

type Option

type Option = generic.Option[Model]

func WithEnabled

func WithEnabled(e bool) Option

func WithFollow

func WithFollow(f bool) Option

func WithVerticalOffset

func WithVerticalOffset(offset int) Option

Jump to

Keyboard shortcuts

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