SF_FONTS
Description
SciFortran module for font customization
Quick access
- Routines:
bg_blue(),bg_green(),bg_red(),bg_yellow(),bold(),bold_blue(),bold_green(),bold_red(),bold_yellow(),erased(),font_blue(),font_green(),font_red(),font_yellow(),highlight(),underline()
Subroutines and functions
- function sf_fonts/bold(text)
This function returns the string
textin bold face. The text is enclosed between the ANSI escape sequencesESC[1mandESC[0m, so the returned string has length8+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=8+len(text))]
- function sf_fonts/underline(text)
This function returns the string
textunderlined, using the ANSI escape sequenceESC[4mand resetting withESC[0m. The returned string has length8+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=8+len(text))]
- function sf_fonts/highlight(text)
This function returns the string
texthighlighted, using the ANSI escape sequenceESC[7m(reverse video: foreground and background colors are swapped) and resetting withESC[0m. The returned string has length8+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=8+len(text))]
- function sf_fonts/erased(text)
This function returns the string
textstruck through, using the ANSI escape sequenceESC[9mand resetting withESC[0m. The returned string has length8+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=8+len(text))]
- function sf_fonts/font_red(text)
This function returns the string
textin red font, using the ANSI escape sequenceESC[91mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/font_green(text)
This function returns the string
textin green font, using the ANSI escape sequenceESC[92mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/font_yellow(text)
This function returns the string
textin yellow font, using the ANSI escape sequenceESC[93mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/font_blue(text)
This function returns the string
textin blue font, using the ANSI escape sequenceESC[94mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/bold_red(text)
This function returns the string
textin bold red font, using the ANSI escape sequenceESC[1;91mand resetting withESC[0m. It combinesboldandfont_red. The returned string has length11+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=11+len(text))]
- function sf_fonts/bold_green(text)
This function returns the string
textin bold green font, using the ANSI escape sequenceESC[1;92mand resetting withESC[0m. It combinesboldandfont_green. The returned string has length11+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=11+len(text))]
- function sf_fonts/bold_yellow(text)
This function returns the string
textin bold yellow font, using the ANSI escape sequenceESC[1;93mand resetting withESC[0m. It combinesboldandfont_yellow. The returned string has length11+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=11+len(text))]
- function sf_fonts/bold_blue(text)
This function returns the string
textin bold blue font, using the ANSI escape sequenceESC[1;94mand resetting withESC[0m. It combinesboldandfont_blue. The returned string has length11+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=11+len(text))]
- function sf_fonts/bg_red(text)
This function returns the string
texton a red background, using the ANSI escape sequenceESC[41mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/bg_green(text)
This function returns the string
texton a green background, using the ANSI escape sequenceESC[42mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/bg_yellow(text)
This function returns the string
texton a yellow background, using the ANSI escape sequenceESC[43mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]
- function sf_fonts/bg_blue(text)
This function returns the string
texton a blue background, using the ANSI escape sequenceESC[44mand resetting withESC[0m. The returned string has length9+len(text).- Parameters:
text [character(len=*)]
- Result:
textout [character(len=9+len(text))]