Skip to content

Commit

Permalink
feat: set colorize default if output_unit is a terminal
Browse files Browse the repository at this point in the history
Otherwise, if output_unit is redirected to a file, turn of colorization
  • Loading branch information
JeffIrwin committed Dec 28, 2023
1 parent 8388f5e commit a9b9132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/veggies/command_line_m.f90
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function get_options() result(options)
integer :: iostat
integer :: num_arguments

options%colorize_ = .true.
options%colorize_ = isatty(output_unit)
options%quiet_ = .false.
options%verbose_ = .false.
options%filter_tests_ = .false.
Expand Down

0 comments on commit a9b9132

Please sign in to comment.