|
fiber
|
The namespace fiber::utf8_lines offers beautiful UTF-8 lines and borders.
Lines are defined as:
where xxx is one of the following descriptions.
If you are using CMake, UTF8 codes are enabled by default. If your terminal does not support UTF-8 characters you can disable them by stting the following CMake or equally named compiler definition:
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
single_vertical | "│" | "|" |
single_horizontal | "─" | "-" |
single_corner_topleft | "┌" | "+" |
single_corner_topright | "┐" | "+" |
single_corner_botleft | "└" | "+" |
single_corner_botright | "┘" | "+" |
single_t_up | "┬" | "+" |
single_t_down | "┴" | "+" |
single_t_left | "├" | "+" |
single_t_right | "┤" | "+" |
single_cross | "┼" | "+" |
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
double_horizontal | "═" | "-" |
double_vertical | "║" | "|" |
double_corner_topleft | "╔" | "+" |
double_corner_topright | "╗" | "+" |
double_corner_botleft | "╚" | "+" |
double_corner_botright | "╝" | "+" |
double_t_up | "╦" | "+" |
double_t_down | "╩" | "+" |
double_t_left | "╠" | "+" |
double_t_right | "╣" | "+" |
double_cross | "╬" | "+" |
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
mixed_corner_topleft | "╒" | "+" |
mixed_corner_topright | "╕" | "+" |
mixed_corner_botleft | "╘" | "+" |
mixed_corner_botright | "╛" | "+" |
mixed_t_up | "╤" | "+" |
mixed_t_down | "╧" | "+" |
mixed_t_left | "╞" | "+" |
mixed_t_right | "╡" | "+" |
mixed_cross | "╪" | "+" |
similar to single, but sometimes spaced differently
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
light_horizontal | "─" | "-" |
light_vertical | "│" | "-" |
light_corner_topleft | "┌" | "+" |
light_corner_topright | "┐" | "+" |
light_corner_botleft | "└" | "+" |
light_corner_botright | "┘" | "+" |
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
heavy_horizontal | "━" | "-" |
heavy_vertical | "┃" | "|" |
heavy_corner_topleft | "┏" | "+" |
heavy_corner_topright | "┓" | "+" |
heavy_corner_botleft | "┗" | "+" |
heavy_corner_botright | "┛" | "+" |
heavy_t_up | "┳" | "+" |
heavy_t_down | "┻" | "+" |
heavy_t_left | "┣" | "+" |
heavy_t_right | "┫" | "+" |
heavy_cross | "╋" | "+" |
usually used with light lines
| Description | UTF-8 Code | ASCII Alternative |
|---|---|---|
rounded_corner_topleft | "╭" | "+" |
rounded_corner_topright | "╮" | "+" |
rounded_corner_botleft | "╰" | "+" |
rounded_corner_botright | "╯" | "+" |