label.go
func (w *Window) AddStatus(y int, j Justify, format string,
	args ...interface{}) *Label {
	l, _ := w.AddWidget(WidgetLabel, 0, y)
	label := l.(*Label)
	label.Resize()
	label.status = true
	label.justify = j

	// flip attributes
	a := defaultAttributes()
	a2 := Attributes{
		Fg: a.Bg,
		Bg: a.Fg,
	}
	label.SetAttributes(a2)

	// print
	label.SetText(format, args...)

	return label
}
func (w *Window) AddStatus(y int, j Justify, format string,
	args ...interface{}) *Label {
	l, _ := w.AddWidget(WidgetLabel, 0, y)
	label := l.(*Label)
	label.Resize()
	label.status = true
	label.justify = j

	// flip attributes
	a := defaultAttributes()
	a2 := Attributes{
		Fg: a.Bg,
		Bg: a.Fg,
	}
	label.SetAttributes(a2)

	// print
	label.SetText(format, args...)

	return label
}
// AddStatus is an alternative Label initializer.  A Status is a label that has
// the property that it fills an entire line and is justified.  This call
// implements the NewWidget convention by taking a *Window and and an anchor
// point to render the widget.