We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ffbfce commit c2b2d0fCopy full SHA for c2b2d0f
expect/console.go
@@ -288,6 +288,11 @@ func (c *Console) Send(s string) (int, error) {
288
289
// SendLine writes string s to Console's tty with a trailing newline.
290
func (c *Console) SendLine(s string) (int, error) {
291
+ return c.Send(fmt.Sprintf("%s\n", s))
292
+}
293
+
294
+// SendOSLine writes string s to Console's tty with a trailing newline separator native to the base OS.
295
+func (c *Console) SendOSLine(s string) (int, error) {
296
return c.Send(fmt.Sprintf("%s%s", s, osutils.LineSep))
297
}
298
0 commit comments