Example #1
0
func CreateView(linequeue chan LineMsg, info ServerInfo) (v *View) {
	v = new(View)
	v.f = stfl.Create("<screen.stfl>")
	v.quit = false
	v.lines = 0
	v.linequeue = linequeue
	v.info = info
	return
}
Example #2
0
func main() {
	f := stfl.Create("<example.stfl>")

	f.Set("value_a", "This is a little")
	f.Set("value_b", "test for STFL!")

	event := ""
	for event != "ESC" {
		event = f.Run(0)
	}

	stfl.Reset()

	fmt.Printf("A: %s\n", f.Get("value_a"))
	fmt.Printf("B: %s\n", f.Get("value_b"))
	fmt.Printf("C: %s\n", f.Get("value_c"))
}