Documentation ¶
Index ¶
- Constants
- Variables
- func Blink()
- func ClearMenu(s Screen, screen [][]string, width int) [][]string
- func DrawMenu(s Screen)
- func DrawSaveInput(screen [][]string) [][]string
- func SaveImage(m Message, imageSaveDirectory string, image string)
- type InputStruct
- type LineStruct
- type MenuType
- type Message
- type Route
- type Screen
- type ShapeStruct
Constants ¶
View Source
const ConfigWidth = 65
View Source
const DefBlinkTime = 50
View Source
const HelpWidth = 40
View Source
const LineWidth = 10
View Source
const ShapeWidth = 12
View Source
const SymbolColorWidth = 15
Variables ¶
View Source
var ( BlinkCursor string BlinkPhase bool BlinkTime = DefBlinkTime )
View Source
var ( FilePath string FileList map[int]string FileListWidth int )
View Source
var Colors = map[int]string{
17: "r",
19: "g",
21: "b",
}
View Source
var DrawLine = map[cursor.Type]map[Route]map[Route]string{ cursor.ContinuousLine: lineList, cursor.SmoothContinuousLine: smoothLineList, cursor.FatContinuousLine: fatLineList, cursor.DoubleContinuousLine: doubleLineList, }
View Source
var GVLine = map[string]map[string]string{
"─": {"v": "│", "g": "─"},
"━": {"v": "┃", "g": "━"},
"═": {"v": "║", "g": "═"},
}
View Source
var GetRoute = map[int]map[int]Route{
-1: {
-1: upLeft,
1: upRight,
0: up,
},
1: {
-1: downLeft,
1: downRight,
0: down,
},
0: {
-1: left,
1: right,
0: stay,
},
}
View Source
var LineList = map[int]LineStruct{ 3: { LineType: cursor.Dot, LineMenu: "•", }, 5: { LineType: cursor.SmoothContinuousLine, LineMenu: "╭─╯", Cursor: "─", }, 7: { LineType: cursor.ContinuousLine, LineMenu: "┌─┘", Cursor: "─", }, 9: { LineType: cursor.FatContinuousLine, LineMenu: "┏━┛", Cursor: "━", }, 11: { LineType: cursor.DoubleContinuousLine, LineMenu: "╔═╝", Cursor: "═", }, }
View Source
var ShapeList = map[int]ShapeStruct{ 3: {ShapeType: cursor.Dot, ShapeSymbol: "\uF444"}, 5: {ShapeType: cursor.GLine, ShapeSymbol: "━━"}, 7: {ShapeType: cursor.VLine, ShapeSymbol: "┃"}, 9: {ShapeType: cursor.ESquare, ShapeSymbol: "\uEA72"}, 11: {ShapeType: cursor.FSquare, ShapeSymbol: "\U000F0764"}, 13: {ShapeType: cursor.ECircle, ShapeSymbol: "\uEABC"}, 15: {ShapeType: cursor.FCircle, ShapeSymbol: "\uF111"}, 17: {ShapeType: cursor.Fill, ShapeSymbol: "\U000F0266"}, }
Functions ¶
func DrawSaveInput ¶ added in v1.2.2
Types ¶
type InputStruct ¶
var Input InputStruct
type ShapeStruct ¶
Click to show internal directories.
Click to hide internal directories.