Skip to content
Myr

[ncurses6] Suppress tui.Italic on ncurses 5

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 182a6d9 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/tui/ncurses.go+5 added-1 removed
37 unmodified lines
38 Dim = C.A_DIM39 Blink = C.A_BLINK40 Reverse = C.A_REVERSE41 Underline = C.A_UNDERLINE42 Italic = C.A_VERTICAL << 1 // FIXME42)4344var Italic Attr = C.A_VERTICAL << 1 // FIXME4546const (47 AttrRegular Attr = 048)49
21 unmodified lines
71)7273func init() {74 _colorMap = make(map[int]ColorPair)75 if strings.HasPrefix(C.GoString(C.curses_version()), "ncurses 5") {76 Italic = C.A_NORMAL77 }78}7980func (a Attr) Merge(b Attr) Attr {81 return a | b
386 unmodified lines