mirror of
https://github.com/br0xen/termbox-util.git
synced 2024-11-25 23:03:13 +00:00
Set Cursor Color
This commit is contained in:
parent
27c7bb1808
commit
80b1bdea74
@ -86,6 +86,16 @@ func (i *InputField) SetBgColor(bg termbox.Attribute) {
|
|||||||
i.bg = bg
|
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
|
// IsBordered returns true or false if this input field has a border
|
||||||
func (i *InputField) IsBordered() bool { return i.bordered }
|
func (i *InputField) IsBordered() bool { return i.bordered }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user