File: example_ansi_combine.f90

package info (click to toggle)
fortran-stdlib 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,008 kB
  • sloc: f90: 24,178; ansic: 1,244; cpp: 623; python: 119; makefile: 13
file content (9 lines) | stat: -rw-r--r-- 271 bytes parent folder | download
1
2
3
4
5
6
7
8
9
program example_ansi_combine
  use stdlib_ansi, only : fg_color_red, style_bold, ansi_code, operator(+), to_string
  implicit none
  type(ansi_code) :: bold_red

  bold_red = fg_color_red + style_bold
  print '(a)', to_string(bold_red)
  
end program example_ansi_combine