MCPcopy
hub / github.com/mum4k/termdash / FgColor

Function FgColor

cell/cell.go:60–64  ·  view source on GitHub ↗

FgColor sets the foreground color of the cell.

(color Color)

Source from the content-addressed store, hash-verified

58
59// FgColor sets the foreground color of the cell.
60func FgColor(color Color) Option {
61 return option(func(co *Options) {
62 co.FgColor = color
63 })
64}
65
66// BgColor sets the background color of the cell.
67func BgColor(color Color) Option {

Callers 15

drawBorderFunction · 0.92
TestNewFunction · 0.92
TestMouseFunction · 0.92
TestUpdateFunction · 0.92
TestDrawWidgetFunction · 0.92
TestBuilderFunction · 0.92
newDashboardTabFunction · 0.92
newSegmentDisplayFunction · 0.92
newControlsTabFunction · 0.92
renderCtrlStatusFunction · 0.92
newVisualizeTabFunction · 0.92
renderVizStatusFunction · 0.92

Calls 1

optionFuncType · 0.70

Tested by 15

TestNewFunction · 0.74
TestMouseFunction · 0.74
TestUpdateFunction · 0.74
TestDrawWidgetFunction · 0.74
TestBuilderFunction · 0.74
TestCellsFunction · 0.74
TestHVFunction · 0.74
TestDiagonalFunction · 0.74
TestDrawFunction · 0.74
TestDrawFunction · 0.74
TestCanvasFunction · 0.74
TestCellFunction · 0.74