summaryrefslogtreecommitdiff
path: root/tek.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-01-08 23:05:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2017-01-08 23:05:09 +0100
commit97bf78219fb94f8a6490f7cd0d72de37f6965549 (patch)
tree35f26d19359dec6f2ca342ef67c87581a2f2417e /tek.go
parent0add289317bf4acca0992f9cf2df71e937227873 (diff)
pen
Diffstat (limited to 'tek.go')
-rw-r--r--tek.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/tek.go b/tek.go
index 38ee8d9..d0909e1 100644
--- a/tek.go
+++ b/tek.go
@@ -36,11 +36,14 @@ func NewOut(w io.Writer) *Out {
}
}
+func (o Out) Clear() {
+ o.writeByte(ESC, FF) // Tek Page
+}
+
func (o Out) Enable() {
if o.xterm {
o.escString("[?38h")
- o.writeByte(ESC, FF) // Tek Page
- o.writeByte(ESC, '`') // solid lines
+ o.Clear()
}
}
@@ -52,11 +55,7 @@ func (o Out) Disable() {
}
}
-func (o Out) PenUp() {
- o.writeByte(GS, 7)
-}
-
-func (o Out) PenDown() {
+func (o Out) Pen() {
o.writeByte(GS)
}