Documentation ¶
Index ¶
Constants ¶
View Source
const ( ColorGreen1 ui.Color = 46 ColorGreen2 ui.Color = 42 ColorGreen3 ui.Color = 34 DarkRed ui.Color = 52 ColorRed1 ui.Color = 195 ColorRed3 ui.Color = 99 RoyalBlue1 ui.Color = 63 MediumPurple3 ui.Color = 141 DeepPink4 ui.Color = 125 LightSteelBlue ui.Color = 147 Gold3 ui.Color = 178 Aquamarine3 ui.Color = 79 Orange4 ui.Color = 94 LightGreen ui.Color = 119 SteelBlue1 ui.Color = 81 CornflowerBlue ui.Color = 69 LightGoldenrod3 ui.Color = 179 IndianRed ui.Color = 173 )
对termui颜色的额外补充
Variables ¶
View Source
var CpuBorderStyle = ui.NewStyle(ui.ColorCyan)
CPU
View Source
var CpuTextStyle = ui.NewStyle(Gold3)
View Source
var DiskBorderStyle = ui.NewStyle(ui.ColorCyan)
Disk
View Source
var DiskTextStyle = ui.NewStyle(Aquamarine3)
View Source
var MemBarColor = []ui.Color{ ui.ColorRed, ColorRed1, ColorRed3, ui.ColorGreen, ColorGreen1, ColorGreen2, }
View Source
var MemBorderStyle = ui.NewStyle(ui.ColorCyan)
Mem
View Source
var MemLabelStyles = MemStrStyles
View Source
var MemStrStyles = []ui.Style{ ui.NewStyle(LightGoldenrod3), ui.NewStyle(LightGoldenrod3), ui.NewStyle(LightGoldenrod3), ui.NewStyle(LightGoldenrod3), ui.NewStyle(LightGoldenrod3), ui.NewStyle(LightGoldenrod3), }
View Source
var MemTextStyle = ui.NewStyle(MediumPurple3)
View Source
var MyBorderStyle = ui.NewStyle(ui.ColorCyan)
View Source
var NetBorderStyle = ui.NewStyle(ui.ColorCyan)
Net
View Source
var NetTextStyle = ui.NewStyle(IndianRed)
View Source
var ProcessBorderStyle = ui.NewStyle(SteelBlue1)
Process
View Source
var ProcessCMDStyle = ui.NewStyle(LightGreen, ui.ColorClear, ui.ModifierBold)
View Source
var ProcessCMDTextStyle = ui.NewStyle(LightGreen)
View Source
var ProcessStrStyle = []ui.Style{ui.NewStyle(LightGreen), ui.NewStyle(LightGreen), ui.NewStyle(LightGreen), ui.NewStyle(LightGreen)}
View Source
var ProcessTextStyle = ui.NewStyle(LightGreen)
View Source
var ProcessesBorderStyle = ui.NewStyle(ui.ColorCyan)
Processes
View Source
var ProcessesTextStyle = ui.NewStyle(ui.ColorGreen)
View Source
var ShadowStyle = ui.NewStyle(ui.ColorYellow, ui.ColorBlack, ui.ModifierBold)
View Source
var TextStyle = ui.NewStyle(ui.ColorYellow)
View Source
var TitleStyle = ui.Theme.Block.Title
Functions ¶
This section is empty.
Types ¶
type ExtraBlock ¶
type ExtraBlock struct { Block RightTitle string RightTitleStyle Style BottomTitle string BottomTitleStyle Style BottomRightTitle string BottomRightTitleStyle Style }
func NewExtraBlock ¶
func NewExtraBlock() *ExtraBlock
func (*ExtraBlock) Draw ¶
func (self *ExtraBlock) Draw(buf *Buffer)
type FormattedText ¶
type Table ¶
type Table struct { Rows [][]string TitleStyle Style ColumnsImportance []string ColumnsMinWidth []int IncreaseWidthColumnIndex int TextStyle Style ColumnsStyles map[int]Style FillRow bool ActiveRowIndex int ActiveRowStyle Style // contains filtered or unexported fields }
func (*Table) Render ¶
func (self *Table) Render(buf *Buffer, block *ExtraBlock)
func (*Table) ScrollBottom ¶
func (self *Table) ScrollBottom()
type WCpu ¶
type WCpu struct { ExtraBlock Graph Line }
type WDisk ¶
type WDisk struct { ExtraBlock Table }
type WMem ¶
type WMem struct { ExtraBlock Graph BarChart }
type WNet ¶
type WNet struct { ExtraBlock Table }
type WProcess ¶
type WProcess struct { ExtraBlock Table FormattedText CMD }
func NewWProcess ¶
func NewWProcess() *WProcess
type WProcesses ¶
type WProcesses struct { ExtraBlock Table }
func NewWProcesses ¶
func NewWProcesses() *WProcesses
func (*WProcesses) Draw ¶
func (self *WProcesses) Draw(buf *Buffer)
Click to show internal directories.
Click to hide internal directories.