Start work on VT LineBuf in Go

This commit is contained in:
Kovid Goyal
2025-02-07 20:09:00 +05:30
parent 244f4597dc
commit b0c41a70bd
3 changed files with 76 additions and 0 deletions

21
tools/vt/line.go Normal file
View File

@@ -0,0 +1,21 @@
package vt
import (
"fmt"
)
var _ = fmt.Print
type PromptKind uint8
const (
UNKNOWN_PROMPT_KIND PromptKind = iota
PROMPT_START
SECONDARY_PROMPT
OUTPUT_START
)
type Line struct {
Cells []Cell
Attrs LineAttrs
}