github.com/jmigpin/editor@v1.6.0/util/drawutil/drawer4/curcolors.go (about) 1 package drawer4 2 3 // Current colors 4 type CurColors struct { 5 d *Drawer 6 } 7 8 func (cc *CurColors) Init() {} 9 10 func (cc *CurColors) Iter() { 11 st := &cc.d.st.curColors 12 st.fg = cc.d.fg 13 st.bg = nil 14 st.lineBg = nil 15 if !cc.d.iterNext() { 16 return 17 } 18 } 19 20 func (cc *CurColors) End() {}