|
@@ -273,12 +273,13 @@ func ExtractBlock(name string, offsets []uint16, data []byte) (Font door.BlockFo
|
|
|
return font
|
|
|
}
|
|
|
|
|
|
-func Show(parts [][]byte) {
|
|
|
+func Show(parts []string) {
|
|
|
reset := "\x1b[0m"
|
|
|
|
|
|
if len(parts) > 0 {
|
|
|
for _, line := range parts {
|
|
|
- fmt.Printf("%s%s\n", door.CP437_to_Unicode(string(line)), reset)
|
|
|
+ // fmt.Printf("%s%s\n", door.CP437_to_Unicode(string(line)), reset)
|
|
|
+ fmt.Printf("%s%s\n", line, reset)
|
|
|
}
|
|
|
fmt.Println("")
|
|
|
}
|
|
@@ -519,6 +520,7 @@ func main() {
|
|
|
var fonts string
|
|
|
var listFonts bool
|
|
|
var allFonts bool
|
|
|
+ door.Unicode = true
|
|
|
|
|
|
flag.StringVar(&fonts, "f", "", "Font(s) to show")
|
|
|
flag.BoolVar(&allFonts, "a", false, "Show All Fonts")
|