aboutsummaryrefslogtreecommitdiff
path: root/robo.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-24 01:03:41 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-24 01:03:41 +0200
commite138e277348c53f99b1f022a9828819245ee7a53 (patch)
treeea150db30b10fc423009a363bae44259b4c8768f /robo.go
parent16415e31ff390fe106017e3e7fc5c692674bdcbf (diff)
wip - broken
Diffstat (limited to 'robo.go')
-rw-r--r--robo.go9
1 files changed, 8 insertions, 1 deletions
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