Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KEYWORD_NORMAL = janet.Keyword("normal") KEYWORD_ROUNDED = janet.Keyword("rounded") KEYWORD_BLOCK = janet.Keyword("block") KEYWORD_OUTER_HALF = janet.Keyword("outer-half") KEYWORD_INNER_HALF = janet.Keyword("inner-half") KEYWORD_THICK = janet.Keyword("thick") KEYWORD_DOUBLE = janet.Keyword("double") KEYWORD_HIDDEN = janet.Keyword("hidden") // Special border behavior KEYWORD_NONE = janet.Keyword("none") )
View Source
var ( KEYWORD_RIGHT = janet.Keyword("right") KEYWORD_LEFT = janet.Keyword("left") KEYWORD_CENTER = janet.Keyword("center") KEYWORD_TOP = janet.Keyword("top") KEYWORD_BOTTOM = janet.Keyword("bottom") )
View Source
var Borders = []Border{ NewBorder(lipgloss.NormalBorder()), NewBorder(lipgloss.RoundedBorder()), NewBorder(lipgloss.BlockBorder()), NewBorder(lipgloss.OuterHalfBlockBorder()), NewBorder(lipgloss.InnerHalfBlockBorder()), NewBorder(lipgloss.ThickBorder()), NewBorder(lipgloss.DoubleBorder()), NewBorder(lipgloss.HiddenBorder()), }
View Source
var DefaultBorder = NewBorder(lipgloss.RoundedBorder())
Functions ¶
func FillBorder ¶
FillBorder detects whether the cell specified by row and col can be replaced with a different border glyph that links its adjacent border cells together nicely.
func GhostCursor ¶ added in v0.10.0
GhostCursor adds a (standardized) "ghost" cursor to an image. This shows the user where the cursor actually is.
Types ¶
type Border ¶
func (*Border) MarshalJanet ¶
func (b *Border) MarshalJanet() interface{}
func (Border) None ¶ added in v0.8.0
None reports whether this Border is none, or should not be rendered.
func (Border) Smoothable ¶
type Color ¶ added in v0.6.0
func (*Color) MarshalJanet ¶ added in v0.6.0
func (c *Color) MarshalJanet() interface{}
Click to show internal directories.
Click to hide internal directories.