WithWriter sets the custom writer.
(writer Writer)
| 26 | |
| 27 | // WithWriter sets the custom writer. |
| 28 | func (area Area) WithWriter(writer Writer) Area { |
| 29 | area.writer = writer |
| 30 | area.cursor = area.cursor.WithWriter(writer) |
| 31 | |
| 32 | return area |
| 33 | } |
| 34 | |
| 35 | // Clear clears the content of the Area. |
| 36 | func (area *Area) Clear() { |