1package e2e23// Golden screens for 012 in a pipeline: the table read from standard4// input with the status line saying what quitting sends, and the5// question Quit asks, each on a light terminal too.6var pipeScreens = []screen{7 {name: "pipe-status", args: []string{"--pipe"}, opts: options{piped: true, stdin: lsNUON, env: []string{"TZ=America/Denver"}}, setup: func(s *session) {8 s.waitFor("Ctrl+Q send the sheet as NUON")9 }},10 {name: "pipe-quit", args: []string{"--pipe"}, opts: options{piped: true, stdin: lsNUON, env: []string{"TZ=America/Denver"}}, setup: func(s *session) {11 s.waitFor("4.2 kB")12 s.keys("<shift+down>", "<shift+down>", "<shift+right>", "<ctrl+q>")13 s.waitFor("Send A1:B3 as NUON?")14 }},15}1617func init() {18 for _, sc := range pipeScreens {19 light := sc20 light.name += "-light"21 light.opts.light = true22 screens = append(screens, sc, light)23 }24}