aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-02 00:27:00 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-02 00:27:00 +0200
commit12af401400969a9ef862161f4dc3a5253a7a6ce8 (patch)
treeda1f5754ea975adb79b3a1487a4aaae3fc3ef9f8 /cutter.go
parentbcb911cd25c37eaa52675ace0e82a3930d836b39 (diff)
Bump timeouts
Diffstat (limited to 'cutter.go')
-rw-r--r--cutter.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/cutter.go b/cutter.go
index 8454ab8..a1f5d09 100644
--- a/cutter.go
+++ b/cutter.go
@@ -90,25 +90,20 @@ func (c Cutter) TestCut() {
type StepDirection byte
const (
- stepEnd StepDirection = 1 << iota >> 1
+ StepStop StepDirection = 1 << iota >> 1
StepDown
StepUp
- StepLeft
StepRight
+ StepLeft
)
-func (c Cutter) step(dir StepDirection) {
+func (c Cutter) Step(dir StepDirection) {
c.WriteByte(ESC)
c.WriteByte(NUL)
c.WriteByte(byte(dir))
c.Flush()
}
-func (c Cutter) Step(dir StepDirection) {
- c.step(dir)
- c.step(stepEnd)
-}
-
// CR returns carret to home on same line
func (c Cutter) CR() {
c.WriteString("TT")