ansigo

Simple ANSi to PNG converter written in pure Go
Log | Files | Refs | README | LICENSE

commit d87d50393b8518a90e1673090c9a442c97854796
parent c09b22053431bcfc9d44c75276f8f6043589f587
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  7 Feb 2017 09:27:02 +0100

Formatting fixes

Diffstat:
MAUTHORS | 4++--
MREADME.md | 16++++++++--------
Mansigo.go | 2+-
3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/AUTHORS b/AUTHORS @@ -1,6 +1,6 @@ -AnsiGo is developed by : +AnsiGo is developed by: Frederic Cambus <fred AT statdns DOT com> Site : http://www.cambus.net -Twitter : @fcambus +Twitter: @fcambus diff --git a/README.md b/README.md @@ -12,11 +12,11 @@ instead : http://www.ansilove.org - ANSi (.ANS) format support - Small output file size (4-bit PNG) -- 80x25 font support : IBM PC (Code page 437) charset +- 80x25 font support: IBM PC (Code page 437) charset ## Installation -Build and install with the `go` tool : +Build and install with the `go` tool: go build ansigo go install ansigo @@ -25,24 +25,24 @@ Alternatively, you can easily cross-compile binaries for other systems. See the ## Usage -AnsiGo takes the input file as parameter : +AnsiGo takes the input file as parameter: ansigo inputfile ## Cross-compiling AnsiGo binaries -Building Go for the required platform : +Building Go for the required platform: cd /usr/local/go/ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ./make.bash CGO_ENABLED=0 GOOS=windows GOARCH=amd64 ./make.bash -Building Linux binaries : +Building Linux binaries: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o linux/amd64/ansigo ansigo CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o linux/i386/ansigo ansigo -Building Windows binaries : +Building Windows binaries: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o windows/amd64/ansigo.exe ansigo CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o windows/i386/ansigo.exe ansigo @@ -53,13 +53,13 @@ AnsiGo is released under the BSD 2-Clause license. See `LICENSE` file for detail ## Author -AnsiGo is developed by Frederic Cambus +AnsiGo is developed by Frederic Cambus. - Site : http://www.cambus.net - Twitter: http://twitter.com/fcambus ## Resources -Project Homepage : http://fcambus.github.io/ansigo/ +Project Homepage: http://fcambus.github.io/ansigo/ Sister project : http://www.ascii-codes.com diff --git a/ansigo.go b/ansigo.go @@ -81,7 +81,7 @@ func main() { break } - // ANSI Sequence : ESC (Escape) + [ + // ANSI Sequence: ESC (Escape) + [ if ansi.character == '\x1b' && data[i+1] == '[' { ansiSequence := []byte{}