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 text in bold face. The text is enclosed between the ANSI escape sequences ESC[1m and ESC[0m, so the returned string has length 8+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=8+len(text))]

function  sf_fonts/underline(text)

This function returns the string text underlined, using the ANSI escape sequence ESC[4m and resetting with ESC[0m. The returned string has length 8+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=8+len(text))]

function  sf_fonts/highlight(text)

This function returns the string text highlighted, using the ANSI escape sequence ESC[7m (reverse video: foreground and background colors are swapped) and resetting with ESC[0m. The returned string has length 8+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=8+len(text))]

function  sf_fonts/erased(text)

This function returns the string text struck through, using the ANSI escape sequence ESC[9m and resetting with ESC[0m. The returned string has length 8+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=8+len(text))]

function  sf_fonts/font_red(text)

This function returns the string text in red font, using the ANSI escape sequence ESC[91m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/font_green(text)

This function returns the string text in green font, using the ANSI escape sequence ESC[92m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/font_yellow(text)

This function returns the string text in yellow font, using the ANSI escape sequence ESC[93m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/font_blue(text)

This function returns the string text in blue font, using the ANSI escape sequence ESC[94m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/bold_red(text)

This function returns the string text in bold red font, using the ANSI escape sequence ESC[1;91m and resetting with ESC[0m. It combines bold and font_red. The returned string has length 11+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=11+len(text))]

function  sf_fonts/bold_green(text)

This function returns the string text in bold green font, using the ANSI escape sequence ESC[1;92m and resetting with ESC[0m. It combines bold and font_green. The returned string has length 11+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=11+len(text))]

function  sf_fonts/bold_yellow(text)

This function returns the string text in bold yellow font, using the ANSI escape sequence ESC[1;93m and resetting with ESC[0m. It combines bold and font_yellow. The returned string has length 11+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=11+len(text))]

function  sf_fonts/bold_blue(text)

This function returns the string text in bold blue font, using the ANSI escape sequence ESC[1;94m and resetting with ESC[0m. It combines bold and font_blue. The returned string has length 11+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=11+len(text))]

function  sf_fonts/bg_red(text)

This function returns the string text on a red background, using the ANSI escape sequence ESC[41m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/bg_green(text)

This function returns the string text on a green background, using the ANSI escape sequence ESC[42m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/bg_yellow(text)

This function returns the string text on a yellow background, using the ANSI escape sequence ESC[43m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]

function  sf_fonts/bg_blue(text)

This function returns the string text on a blue background, using the ANSI escape sequence ESC[44m and resetting with ESC[0m. The returned string has length 9+len(text).

Parameters:

text [character(len=*)]

Result:

textout [character(len=9+len(text))]