We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1c8b20 commit 6229fceCopy full SHA for 6229fce
multiline.go
@@ -127,9 +127,22 @@ func (a *MultilineAnswer) Do(c Console) error {
127
return nil
128
}
129
130
- c.SendLine(a.answer)
131
- c.SendLine("")
132
+ lines := strings.Split(a.answer, "\n")
+ lines = append(lines, "")
+
133
+ if a.answer != "" {
134
135
+ }
136
137
+ cnt := len(lines) - 1
138
139
+ for i, l := range lines {
140
+ c.SendLine(l)
141
142
+ if i < cnt {
143
+ _ = waitForCursorTwice(c)
144
145
146
147
148
0 commit comments