]> git.0d.be Git - barnard.git/blobdiff - uiterm/textbox.go
uiterm: remove LayoutFunc, remove InputFunc type
[barnard.git] / uiterm / textbox.go
index c40ffe7c4ed7b156f3cfcdbebea2f27ce388dc0d..483456f9b8bf97b15dd6f37a4f2f5d55d0d7dafd 100644 (file)
@@ -7,14 +7,12 @@ import (
        "github.com/nsf/termbox-go"
 )
 
-type InputFunc func(ui *Ui, textbox *Textbox, text string)
-
 type Textbox struct {
        Text string
        Fg   Attribute
        Bg   Attribute
 
-       Input InputFunc
+       Input func(ui *Ui, textbox *Textbox, text string)
 
        ui *Ui
        active         bool