tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
Data Types | Functions/Subroutines
tblite_context_terminal Module Reference

Support for ANSI escape sequences to get colorful terminal output. More...

Data Types

interface  context_terminal
 Colorizer class for handling colorful output in the terminal. More...
 
interface  operator(+)
 
interface  operator(//)
 

Functions/Subroutines

pure character(len=:) function, allocatable, public escape (code)
 Transform a color code into an actual ANSI escape sequence.
 

Detailed Description

Support for ANSI escape sequences to get colorful terminal output.

Function/Subroutine Documentation

◆ escape()

pure character(len=:) function, allocatable, public tblite_context_terminal::escape ( type(color), intent(in) code)

Transform a color code into an actual ANSI escape sequence.

Parameters
[in]codeColor code to be used
Returns
ANSI escape sequence representing the color code