Setup initializes the UI concerns within the context of a global [gocui] view object.
(view *gocui.View)
| 52 | |
| 53 | // Setup initializes the UI concerns within the context of a global [gocui] view object. |
| 54 | func (v *Status) Setup(view *gocui.View) error { |
| 55 | logrus.Tracef("view.Setup() %s", v.Name()) |
| 56 | |
| 57 | // set controller options |
| 58 | v.view = view |
| 59 | v.view.Frame = false |
| 60 | |
| 61 | return v.Render() |
| 62 | } |
| 63 | |
| 64 | // IsVisible indicates if the status view pane is currently initialized. |
| 65 | func (v *Status) IsVisible() bool { |