use stdout to determin output terminal size

This commit is contained in:
Cory Bennett
2017-09-06 00:33:53 -07:00
parent 2cb6bbb10d
commit 4d79af4f5e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func TemplateProcessor() *template.Template {
return string(bytes), nil
},
"termWidth": func() int {
w, _, err := terminal.GetSize(int(os.Stdin.Fd()))
w, _, err := terminal.GetSize(int(os.Stdout.Fd()))
if err == nil {
return w
}