Crate termal_core
source ·Expand description
Core library of termal, contains the implementation.
Modules§
- Module with ansi escape codes.
- Procedural macros implemented with
proc_macro2
.
Macros§
- creates a true rgb background color. R, G and B must be values in range 0..256
- creates a background color, color is value in range 0..256
- Moves cursor to the given column
- Creates escape sequence, the first literal is the end of the sequence, the other arguments are the values in the sequence
- creates a true rgb foreground color. R, G and B must be values in range 0..256
- creates a foreground color, color is value in range 0..256
- Moves cursor down by N positions
- Moves cursor left by N positions
- Moves cursor right by N positions
- Moves cursor to the given position.
- Moves cursor up by N positions
- Creates the given sequence, this is used internally, you should use the macro [
csi
] - Moves cursor to the start of line N lines down
- Moves cursor to the start of line N lines up
Functions§
- Generates linear color gradient with the given text
- Appends linear gradient to the given string