aboutsummaryrefslogtreecommitdiff
path: root/cutter.go
diff options
context:
space:
mode:
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")