mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 05:23:33 +02:00
use stdout to determin output terminal size
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user