package ansi import ( "fmt" "strings" "testing" "github.com/charmbracelet/x/ansi/parser" ) func TestDcsSequence(t *testing.T) { cases := []testCase{ { name: "max_params", input: fmt.Sprintf("\x1bP%sp\x1b\\", strings.Repeat("1;", 33)), expected: []any{ dcsSequence{ Cmd: 'p', Params: Params{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, Data: []byte{}, }, Cmd('\\'), }, }, { name: "reset", input: "\x1b[3;1\x1bP1$tx\x9c", expected: []any{ dcsSequence{ Cmd: 't' | '$'<