From b6b245c65e18114513a91e782f0586b3288a4b76 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 4 Sep 2017 11:53:17 +0200 Subject: [PATCH] Enforce colorized output for QR code. --- testssh/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testssh/main.go b/testssh/main.go index 59e9487..e4ae8e6 100644 --- a/testssh/main.go +++ b/testssh/main.go @@ -5,6 +5,7 @@ import ( "io" "log" + "github.com/fatih/color" "github.com/gliderlabs/ssh" "github.com/qpliu/qrencode-go/qrencode" @@ -14,6 +15,8 @@ import ( func main() { greeting := "https://git.icedream.tech/icedream/pixelqr" + color.NoColor = false + ssh.Handle(func(s ssh.Session) { grid, err := qrencode.Encode(greeting, qrencode.ECLevelQ) if err != nil {