customtea

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMSG

func BuildMSG(msg tea.Msg, state *golua.LState) *golua.LTable

func CMDBatch

func CMDBatch(state *golua.LState, cmds *golua.LTable) *golua.LTable

func CMDBatchBuild

func CMDBatchBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd
func CMDBlink(state *golua.LState, id int) *golua.LTable

func CMDBlinkBuild

func CMDBlinkBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDBuild

func CMDBuild(state *golua.LState, item *teamodels.TeaItem, t *golua.LTable) tea.Cmd

func CMDClearScreen

func CMDClearScreen(state *golua.LState) *golua.LTable

func CMDClearScreenBuild

func CMDClearScreenBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDClearScrollArea

func CMDClearScrollArea(state *golua.LState) *golua.LTable

func CMDClearScrollAreaBuild

func CMDClearScrollAreaBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDCursorFocus

func CMDCursorFocus(state *golua.LState, id int) *golua.LTable

func CMDCursorFocusBuild

func CMDCursorFocusBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDDisableMouse

func CMDDisableMouse(state *golua.LState) *golua.LTable

func CMDDisableMouseBuild

func CMDDisableMouseBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDEnableMouseAllMotion

func CMDEnableMouseAllMotion(state *golua.LState) *golua.LTable

func CMDEnableMouseAllMotionBuild

func CMDEnableMouseAllMotionBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDEnableMouseCellMotion

func CMDEnableMouseCellMotion(state *golua.LState) *golua.LTable

func CMDEnableMouseCellMotionBuild

func CMDEnableMouseCellMotionBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDEnterAltScreen

func CMDEnterAltScreen(state *golua.LState) *golua.LTable

func CMDEnterAltScreenBuild

func CMDEnterAltScreenBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDEvery

func CMDEvery(state *golua.LState, duration int, fn *golua.LFunction) *golua.LTable

func CMDEveryBuild

func CMDEveryBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDExitAltScreen

func CMDExitAltScreen(state *golua.LState) *golua.LTable

func CMDExitAltScreenBuild

func CMDExitAltScreenBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDFilePickerInit

func CMDFilePickerInit(state *golua.LState, id int) *golua.LTable

func CMDFilePickerInitBuild

func CMDFilePickerInitBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDHideCursor

func CMDHideCursor(state *golua.LState) *golua.LTable

func CMDHideCursorBuild

func CMDHideCursorBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDImageFile

func CMDImageFile(state *golua.LState, id int, filename string) *golua.LTable

func CMDImageFileBuild

func CMDImageFileBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDImageSize

func CMDImageSize(state *golua.LState, id, width, height int) *golua.LTable

func CMDImageSizeBuild

func CMDImageSizeBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListInsertItem

func CMDListInsertItem(state *golua.LState, id, index int, item *golua.LTable) *golua.LTable

func CMDListInsertItemBuild

func CMDListInsertItemBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListSetItem

func CMDListSetItem(state *golua.LState, id, index int, item *golua.LTable) *golua.LTable

func CMDListSetItemBuild

func CMDListSetItemBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListSetItems

func CMDListSetItems(state *golua.LState, id int, items *golua.LTable) *golua.LTable

func CMDListSetItemsBuild

func CMDListSetItemsBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListSpinnerStart

func CMDListSpinnerStart(state *golua.LState, id int) *golua.LTable

func CMDListSpinnerStartBuild

func CMDListSpinnerStartBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListSpinnerToggle

func CMDListSpinnerToggle(state *golua.LState, id int) *golua.LTable

func CMDListSpinnerToggleBuild

func CMDListSpinnerToggleBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDListStatusMessage

func CMDListStatusMessage(state *golua.LState, id int, msg string) *golua.LTable

func CMDListStatusMessageBuild

func CMDListStatusMessageBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDNone

func CMDNone(state *golua.LState) *golua.LTable

func CMDPrintf

func CMDPrintf(state *golua.LState, format string, args *golua.LTable) *golua.LTable

func CMDPrintfBuild

func CMDPrintfBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDPrintln

func CMDPrintln(state *golua.LState, args *golua.LTable) *golua.LTable

func CMDPrintlnBuild

func CMDPrintlnBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDProgressDec

func CMDProgressDec(state *golua.LState, id int, percent float64) *golua.LTable

func CMDProgressDecBuild

func CMDProgressDecBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDProgressInc

func CMDProgressInc(state *golua.LState, id int, percent float64) *golua.LTable

func CMDProgressIncBuild

func CMDProgressIncBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDProgressSet

func CMDProgressSet(state *golua.LState, id int, percent float64) *golua.LTable

func CMDProgressSetBuild

func CMDProgressSetBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDQuit

func CMDQuit(state *golua.LState) *golua.LTable

func CMDQuitBuild

func CMDQuitBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDScrollDown

func CMDScrollDown(state *golua.LState, lines *golua.LTable, top, bottom int) *golua.LTable

func CMDScrollDownBuild

func CMDScrollDownBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDScrollSync

func CMDScrollSync(state *golua.LState, lines *golua.LTable, top, bottom int) *golua.LTable

func CMDScrollSyncBuild

func CMDScrollSyncBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDScrollUp

func CMDScrollUp(state *golua.LState, lines *golua.LTable, top, bottom int) *golua.LTable

func CMDScrollUpBuild

func CMDScrollUpBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDSequence

func CMDSequence(state *golua.LState, cmds *golua.LTable) *golua.LTable

func CMDSequenceBuild

func CMDSequenceBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDShowCursor

func CMDShowCursor(state *golua.LState) *golua.LTable

func CMDShowCursorBuild

func CMDShowCursorBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDSpinnerTick

func CMDSpinnerTick(state *golua.LState, id int) *golua.LTable

func CMDSpinnerTickBuild

func CMDSpinnerTickBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDStopWatchReset

func CMDStopWatchReset(state *golua.LState, id int) *golua.LTable

func CMDStopWatchResetBuild

func CMDStopWatchResetBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDStopWatchStart

func CMDStopWatchStart(state *golua.LState, id int) *golua.LTable

func CMDStopWatchStartBuild

func CMDStopWatchStartBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDStopWatchStop

func CMDStopWatchStop(state *golua.LState, id int) *golua.LTable

func CMDStopWatchStopBuild

func CMDStopWatchStopBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDStopWatchToggle

func CMDStopWatchToggle(state *golua.LState, id int) *golua.LTable

func CMDStopWatchToggleBuild

func CMDStopWatchToggleBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDStored

func CMDStored(state *golua.LState, item *teamodels.TeaItem, cmd tea.Cmd) *golua.LTable

func CMDStoredBuild

func CMDStoredBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDSuspend

func CMDSuspend(state *golua.LState) *golua.LTable

func CMDSuspendBuild

func CMDSuspendBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTextAreaFocus

func CMDTextAreaFocus(state *golua.LState, id int) *golua.LTable

func CMDTextAreaFocusBuild

func CMDTextAreaFocusBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTextInputFocus

func CMDTextInputFocus(state *golua.LState, id int) *golua.LTable

func CMDTextInputFocusBuild

func CMDTextInputFocusBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTick

func CMDTick(state *golua.LState, duration int, fn *golua.LFunction) *golua.LTable

func CMDTickBuild

func CMDTickBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTimerInit

func CMDTimerInit(state *golua.LState, id int) *golua.LTable

func CMDTimerInitBuild

func CMDTimerInitBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTimerStart

func CMDTimerStart(state *golua.LState, id int) *golua.LTable

func CMDTimerStartBuild

func CMDTimerStartBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTimerStop

func CMDTimerStop(state *golua.LState, id int) *golua.LTable

func CMDTimerStopBuild

func CMDTimerStopBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDTimerToggle

func CMDTimerToggle(state *golua.LState, id int) *golua.LTable

func CMDTimerToggleBuild

func CMDTimerToggleBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDToggleBracketedPaste

func CMDToggleBracketedPaste(state *golua.LState, enable bool) *golua.LTable

func CMDToggleBracketedPasteBuild

func CMDToggleBracketedPasteBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDToggleReportFocus

func CMDToggleReportFocus(state *golua.LState, enable bool) *golua.LTable

func CMDToggleReportFocusBuild

func CMDToggleReportFocusBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDViewportDown

func CMDViewportDown(state *golua.LState, id int, lines *golua.LTable) *golua.LTable

func CMDViewportDownBuild

func CMDViewportDownBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDViewportSync

func CMDViewportSync(state *golua.LState, id int) *golua.LTable

func CMDViewportSyncBuild

func CMDViewportSyncBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDViewportUp

func CMDViewportUp(state *golua.LState, id int, lines *golua.LTable) *golua.LTable

func CMDViewportUpBuild

func CMDViewportUpBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDWindowSize

func CMDWindowSize(state *golua.LState) *golua.LTable

func CMDWindowSizeBuild

func CMDWindowSizeBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func CMDWindowTitle

func CMDWindowTitle(state *golua.LState, title string) *golua.LTable

func CMDWindowTitleBuild

func CMDWindowTitleBuild(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

func KeyEventTable

func KeyEventTable(state *golua.LState, event tea.Key) *golua.LTable

func ListItemTable

func ListItemTable(state *golua.LState, title, description, filter string) *golua.LTable

func ListItemTableFrom

func ListItemTableFrom(state *golua.LState, i ListItem) *golua.LTable

func MouseEventTable

func MouseEventTable(state *golua.LState, event tea.MouseEvent) *golua.LTable

Types

type CMDBuilder

type CMDBuilder func(item *teamodels.TeaItem, state *golua.LState, t *golua.LTable) tea.Cmd

type ListItem

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

func ListItemBuild

func ListItemBuild(t *golua.LTable) ListItem

func (ListItem) Description

func (i ListItem) Description() string

func (ListItem) FilterValue

func (i ListItem) FilterValue() string

func (ListItem) Title

func (i ListItem) Title() string

type ProgramModel

type ProgramModel struct {
	Item  *teamodels.TeaItem
	State *golua.LState
	Id    int
	R     *lua.Runner
	Lg    *log.Logger
}

func (ProgramModel) Init

func (m ProgramModel) Init() tea.Cmd

func (ProgramModel) Update

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

func (ProgramModel) View

func (m ProgramModel) View() string

type TeaCMD

type TeaCMD int
const (
	CMD_NONE TeaCMD = iota
	CMD_STORED
	CMD_BATCH
	CMD_SEQUENCE
	CMD_SPINNERTICK
	CMD_TEXTAREAFOCUS
	CMD_TEXTINPUTFOCUS
	CMD_BLINK
	CMD_CURSORFOCUS
	CMD_FILEPICKERINIT
	CMD_LISTSETITEMS
	CMD_LISTINSERTITEM
	CMD_LISTSETITEM
	CMD_LISTSTATUSMESSAGE
	CMD_LISTSPINNERSTART
	CMD_LISTSPINNERTOGGLE
	CMD_PROGRESSSET
	CMD_PROGRESSDEC
	CMD_PROGRESSINC
	CMD_STOPWATCHSTART
	CMD_STOPWATCHSTOP
	CMD_STOPWATCHTOGGLE
	CMD_STOPWATCHRESET
	CMD_TIMERINIT
	CMD_TIMERSTART
	CMD_TIMERSTOP
	CMD_TIMERTOGGLE
	CMD_VIEWPORTSYNC
	CMD_VIEWPORTUP
	CMD_VIEWPORTDOWN
	CMD_PRINTF
	CMD_PRINTLN
	CMD_WINDOWTITLE
	CMD_WINDOWSIZE
	CMD_SUSPEND
	CMD_QUIT
	CMD_SHOWCURSOR
	CMD_HIDECURSOR
	CMD_CLEARSCREEN
	CMD_CLEARSCROLLAREA
	CMD_SCROLLSYNC
	CMD_SCROLLUP
	CMD_SCROLLDOWN
	CMD_EVERY
	CMD_TICK
	CMD_TOGGLEREPORTFOCUS
	CMD_TOGGLEBRACKETEDPASTE
	CMD_DISABLEMOUSE
	CMD_ENABLEMOUSEALLMOTION
	CMD_ENABLEMOUSECELLMOTION
	CMD_ENTERALTSCREEN
	CMD_EXITALTSCREEN
	CMD_IMAGESIZE
	CMD_IMAGEFILE
)

type TeaMSG

type TeaMSG int
const (
	MSG_NONE TeaMSG = iota
	MSG_BLUR
	MSG_FOCUS
	MSG_QUIT
	MSG_RESUME
	MSG_SUSPEND
	MSG_WINDOWSIZE
	MSG_KEY
	MSG_MOUSE
	MSG_SPINNERTICK
	MSG_BLINK
	MSG_STOPWATCHRESET
	MSG_STOPWATCHSTARTSTOP
	MSG_STOPWATCHTICK
	MSG_TIMERSTARTSTOP
	MSG_TIMERTICK
	MSG_TIMERTIMEOUT
	MSG_LUA
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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