mirror of
https://github.com/br0xen/termbox-util.git
synced 2025-08-18 11:44:06 -05:00
Set Cursor Color
This commit is contained in:
@@ -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 }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user