Add editor packages

This commit is contained in:
dwrz
2026-10-26 02:32:03 +00:00
parent 38714f6c80
commit 4ed2ee97e0
23 changed files with 2114 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
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,
}
}