ccpaging
ccpaging
Try: ``` type Application struct { Version string // `1.5` Command Commands []*Command Topics []*Topic Groups []*Group // Default is a default handler. It gets executed if there are //...
仓库里有英文版的epub。试着转换成mobi看看
No. It does not work. Since cygwin use ANSI and not windows console. Checking environment variable "TERM=xterm-256color" or "TERM=cygwin" in ct_win.go may solve the problem.
After adding some ugly code, ```go import ( "syscall" "unsafe" "os" "fmt" ) var ( IsTerminal = os.Getenv("TERM") != "" && os.Getenv("TERM") != "cygwin" ) ``` Calling ANSI code if...
https://github.com/mattn/go-isatty ```go NoColor = (os.Getenv("TERM") == "dumb") WinColor = isatty.IsTerminal(os.Stdout.Fd()) ```
https://github.com/ccpaging/go-colortext I had tested it in linux console/term, windows console prompt / Power Shell / ConEmu / cygwin Bash, cygwin mintty/bash/tmux. Changelog: 1. Use external package to get terminal type....