Browse Source

Removed debug print

Wijnand Modderman-Lenstra 2 years ago
parent
commit
da33b9a180
2 changed files with 1 additions and 5 deletions
  1. 0
    5
      db.go
  2. 1
    0
      terminfo.go

+ 0
- 5
db.go View File

@@ -5,7 +5,6 @@ import (
5 5
 	"encoding/binary"
6 6
 	"errors"
7 7
 	"io"
8
-	"log"
9 8
 	"os"
10 9
 	"path/filepath"
11 10
 	"strconv"
@@ -77,8 +76,6 @@ func lookupDir(dir, name string) (*Terminfo, error) {
77 76
 		return nil, err
78 77
 	}
79 78
 
80
-	log.Printf("terminfo: parsing %s", f.Name())
81
-
82 79
 	var (
83 80
 		d = NewDecoder(f)
84 81
 		t *Terminfo
@@ -126,8 +123,6 @@ func (d *Decoder) Unmarshal() (*Terminfo, error) {
126 123
 		return nil, errors.New("terminfo: bad magic")
127 124
 	}
128 125
 
129
-	log.Printf("magic: %04o", header[0])
130
-
131 126
 	var (
132 127
 		t   = new(Terminfo)
133 128
 		buf []byte

+ 1
- 0
terminfo.go View File

@@ -11,6 +11,7 @@ var DefaultDirs = []string{
11 11
 	"/lib/terminfo",
12 12
 	"/usr/lib/terminfo",
13 13
 	"/usr/share/terminfo",
14
+	"/usr/local/share/terminfo",
14 15
 }
15 16
 
16 17
 // Terminfo entry.

Loading…
Cancel
Save