1
0
mirror of https://github.com/br0xen/termbox-util.git synced 2024-11-22 05:33:13 +00:00

Set Cursor Color

This commit is contained in:
Brian Buller 2019-03-09 14:42:18 -06:00
parent 27c7bb1808
commit 80b1bdea74

View File

@ -86,6 +86,16 @@ func (i *InputField) SetBgColor(bg termbox.Attribute) {
i.bg = bg
}
func (i *InputField) SetCursorFg(fg termbox.Attribute) {
i.cursorFg = fg
}
func (i *InputField) GetCursorFg() termbox.Attribute { return i.cursorFg }
func (i *InputField) SetCursorBg(bg termbox.Attribute) {
i.cursorBg = bg
}
func (i *InputField) GetCursorBg() termbox.Attribute { return i.cursorBg }
// IsBordered returns true or false if this input field has a border
func (i *InputField) IsBordered() bool { return i.bordered }