aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cutter.go5
-rw-r--r--main.go1
2 files changed, 6 insertions, 0 deletions
diff --git a/cutter.go b/cutter.go
index de12352..be1a40c 100644
--- a/cutter.go
+++ b/cutter.go
@@ -433,3 +433,8 @@ func (c Cutter) ReadUpperRight() Point {
c.Send("U")
return c.parsePoint()
}
+
+func (c Cutter) StatusWord() (string, error) {
+ c.Send("@")
+ return c.readResponse()
+}
diff --git a/main.go b/main.go
index eca1d9b..05160e2 100644
--- a/main.go
+++ b/main.go
@@ -27,5 +27,6 @@ func main() {
fmt.Println("Offset", c.ReadOffset())
fmt.Println("Upper Right", c.ReadUpperRight())
fmt.Println("Lower Left", c.ReadLowerLeft())
+ fmt.Println(c.StatusWord())
}