I'm trying to write some text into a NewBox, and I can't figure out how to do this.
The documentation explains how Print is used to write to a box, but the function takes a tcell.Screen which is an interface the Box struct doesn't conform to. Maybe, the example of how to create and use a Box can be expanded to include some text as well?
I'm trying to write some text into a
NewBox, and I can't figure out how to do this.The documentation explains how
Printis used to write to a box, but the function takes atcell.Screenwhich is an interface theBoxstruct doesn't conform to. Maybe, the example of how to create and use aBoxcan be expanded to include some text as well?