mirror of https://github.com/mum4k/termdash.git
Added Double Line Style
This commit is contained in:
parent
85b31891ec
commit
3e60b42918
|
@ -39,6 +39,19 @@ var lineStyleChars = map[LineStyle]map[linePart]rune{
|
|||
vAndRight: '├',
|
||||
vAndH: '┼',
|
||||
},
|
||||
LineStyleDouble: {
|
||||
hLine: '═',
|
||||
vLine: '║',
|
||||
topLeftCorner: '╔',
|
||||
topRightCorner: '╗',
|
||||
bottomLeftCorner: '╚',
|
||||
bottomRightCorner: '╝',
|
||||
hAndUp: '╩',
|
||||
hAndDown: '╦',
|
||||
vAndLeft: '╣',
|
||||
vAndRight: '╠',
|
||||
vAndH: '╬',
|
||||
},
|
||||
}
|
||||
|
||||
// init verifies that all line parts are half-width runes (occupy only one
|
||||
|
@ -75,13 +88,15 @@ func (ls LineStyle) String() string {
|
|||
|
||||
// lineStyleNames maps LineStyle values to human readable names.
|
||||
var lineStyleNames = map[LineStyle]string{
|
||||
LineStyleLight: "LineStyleLight",
|
||||
LineStyleLight: "LineStyleLight",
|
||||
LineStyleDouble: "LineStyleDouble",
|
||||
}
|
||||
|
||||
// Supported line styles.
|
||||
const (
|
||||
LineStyleNone LineStyle = iota
|
||||
LineStyleLight
|
||||
LineStyleDouble
|
||||
)
|
||||
|
||||
// linePart identifies individual line parts.
|
||||
|
|
Loading…
Reference in New Issue