From e138e277348c53f99b1f022a9828819245ee7a53 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 24 Sep 2016 01:03:41 +0200 Subject: wip - broken --- robo.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'robo.go') diff --git a/robo.go b/robo.go index 2181bc5..d0cf9da 100644 --- a/robo.go +++ b/robo.go @@ -3,6 +3,7 @@ package robo import ( "bufio" "fmt" + "io" ) const ( @@ -164,7 +165,13 @@ func str(c *bufio.ReadWriter, cmd string) string { return recv(c.Reader) } -func Version(c *bufio.ReadWriter) string { return str(c, "FG") } +func Version(c io.Writer) string { + io.WriteString(c, "FG") + //return str(c, "FG") + return "" +} + +//func Version(c *bufio.ReadWriter) string { return str(c, "FG") } func StatusWord(c *bufio.ReadWriter) string { return str(c, "@") } type Orientation int -- cgit v1.2.3