Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657package tea
import ( uv "github.com/charmbracelet/ultraviolet")
// translateInputEvent translates an input event into a Bubble Tea Msg.func (p *Program) translateInputEvent(e uv.Event) Msg { switch e := e.(type) { case uv.ClipboardEvent: return ClipboardMsg(e) case uv.ForegroundColorEvent: return ForegroundColorMsg(e) case uv.BackgroundColorEvent: return BackgroundColorMsg(e) case uv.CursorColorEvent: return CursorColorMsg(e) case uv.CursorPositionEvent: return CursorPositionMsg(e) case uv.FocusEvent: return FocusMsg(e) case uv.BlurEvent: return BlurMsg(e) case uv.KeyPressEvent: return KeyPressMsg(e) case uv.KeyReleaseEvent: return KeyReleaseMsg(e) case uv.MouseClickEvent: return MouseClickMsg(e) case uv.MouseMotionEvent: return MouseMotionMsg(e) case uv.MouseReleaseEvent: return MouseReleaseMsg(e) case uv.MouseWheelEvent: return MouseWheelMsg(e) case uv.PasteEvent: return PasteMsg(e) case uv.PasteStartEvent: return PasteStartMsg(e) case uv.PasteEndEvent: return PasteEndMsg(e) case uv.WindowSizeEvent: return WindowSizeMsg(e) case uv.CapabilityEvent: return CapabilityMsg(e) case uv.TerminalVersionEvent: return TerminalVersionMsg(e) case uv.KeyboardEnhancementsEvent: return KeyboardEnhancementsMsg(e) case uv.ModeReportEvent: return ModeReportMsg(e) case uv.ProgramStatusSupportEvent: return ProgramStatusSupportMsg{} } return e}