Skip to content
Myr

paste.go

This file

Path

paste.go

20 lines · 520 bytes · Go

Last changed by

Merge pull request #1118 from charmbracelet/v2-expAyman Bagabasbefore adoptiond1c8c97

History of this file

Take it

1package tea23// PasteMsg is an message that is emitted when a terminal receives pasted text4// using bracketed-paste.5type PasteMsg struct {6	Content string7}89// String returns the pasted content as a string.10func (p PasteMsg) String() string {11	return p.Content12}1314// PasteStartMsg is an message that is emitted when the terminal starts the15// bracketed-paste text.16type PasteStartMsg struct{}1718// PasteEndMsg is an message that is emitted when the terminal ends the19// bracketed-paste text.20type PasteEndMsg struct{}