Skip to content

Commit

Permalink
Log TERM_PROGRAM in problem reports
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Jan 12, 2025
1 parent b063ab0 commit f083f59
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions moar.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ func printProblemsHeader() {
fmt.Fprintln(os.Stderr, "Please post the following report at <https://github.com/walles/moar/issues>,")
fmt.Fprintln(os.Stderr, "or e-mail it to [email protected].")
fmt.Fprintln(os.Stderr)
fmt.Fprintln(os.Stderr, "Version:", getVersion())
fmt.Fprintln(os.Stderr, "LANG :", os.Getenv("LANG"))
fmt.Fprintln(os.Stderr, "TERM :", os.Getenv("TERM"))
fmt.Fprintln(os.Stderr, "MOAR :", os.Getenv("MOAR"))
fmt.Fprintln(os.Stderr, "EDITOR :", os.Getenv("EDITOR"))
fmt.Fprintln(os.Stderr, "Version :", getVersion())
fmt.Fprintln(os.Stderr, "LANG :", os.Getenv("LANG"))
fmt.Fprintln(os.Stderr, "TERM :", os.Getenv("TERM"))
fmt.Fprintln(os.Stderr, "MOAR :", os.Getenv("MOAR"))
fmt.Fprintln(os.Stderr, "EDITOR :", os.Getenv("EDITOR"))
fmt.Fprintln(os.Stderr, "TERM_PROGRAM:", os.Getenv("TERM_PROGRAM"))
fmt.Fprintln(os.Stderr)
fmt.Fprintln(os.Stderr, "GOOS :", runtime.GOOS)
fmt.Fprintln(os.Stderr, "GOARCH :", runtime.GOARCH)
Expand Down

0 comments on commit f083f59

Please sign in to comment.