Files

34 lines
452 B
Go
Raw Permalink Normal View History

2026-10-26 02:32:03 +00:00
package canvas
import (
"bytes"
"log/slog"
"os"
"sync"
"code.chimeric.al/dwrz/wen/pkg/terminal"
)
type Canvas struct {
log *slog.Logger
out *os.File
terminal *terminal.Terminal
mu sync.Mutex
buf bytes.Buffer
}
type Parameters struct {
Log *slog.Logger
Out *os.File
Terminal *terminal.Terminal
}
func New(p Parameters) *Canvas {
return &Canvas{
log: p.Log,
out: p.Out,
terminal: p.Terminal,
}
}