func NewBufferedWriter(w io.Writer) *BufferedWriter {
	return &BufferedWriter{buf: &bytes.Buffer{}, w: w}
}
NewBufferedWriter creates and initializes a new BufferedWriter.
package term
import (
	"bytes"
	"fmt"
	"io"
	"github.com/fatih/color"
)
type BufferedWriter struct {
	w        io.Writer
	buf      *bytes.Buffer
	lineWrap bool
	reset    bool
	flush    bool
	cursor   int
	height   int
}