libfort
LIBFORT

These pages contain the API documentation of libfort - simple library to create formatted tables for console applications.

List of libfort builtin border styles:

1  FT_BASIC_STYLE FT_BASIC2_STYLE
2 
3 +------+--------------------------+------+--------+ +------+--------------------------+------+--------+
4 | Rank | Title | Year | Rating | | Rank | Title | Year | Rating |
5 +------+--------------------------+------+--------+ +------+--------------------------+------+--------+
6 | 1 | The Shawshank Redemption | 1994 | 9.5 | | 1 | The Shawshank Redemption | 1994 | 9.5 |
7 | 2 | 12 Angry Men | 1957 | 8.8 | +------+--------------------------+------+--------+
8 | 3 | It's a Wonderful Life | 1946 | 8.6 | | 2 | 12 Angry Men | 1957 | 8.8 |
9 +------+--------------------------+------+--------+ +------+--------------------------+------+--------+
10 | 4 | 2001: A Space Odyssey | 1968 | 8.5 | | 3 | It's a Wonderful Life | 1946 | 8.6 |
11 | 5 | Blade Runner | 1982 | 8.1 | +------+--------------------------+------+--------+
12 +------+--------------------------+------+--------+ | 4 | 2001: A Space Odyssey | 1968 | 8.5 |
13  +------+--------------------------+------+--------+
14  | 5 | Blade Runner | 1982 | 8.1 |
15  +------+--------------------------+------+--------+
16 
17 
18 
19 
20  FT_SIMPLE_STYLE FT_PLAIN_STYLE
21 
22  -------------------------------------------------
23  Rank Title Year Rating Rank Title Year Rating
24  ------ -------------------------- ------ -------- -------------------------------------------------
25  1 The Shawshank Redemption 1994 9.5 1 The Shawshank Redemption 1994 9.5
26  2 12 Angry Men 1957 8.8 2 12 Angry Men 1957 8.8
27  3 It's a Wonderful Life 1946 8.6 3 It's a Wonderful Life 1946 8.6
28  ------ -------------------------- ------ -------- -------------------------------------------------
29  4 2001: A Space Odyssey 1968 8.5 4 2001: A Space Odyssey 1968 8.5
30  5 Blade Runner 1982 8.1 5 Blade Runner 1982 8.1
31 
32 
33 
34 
35 
36  FT_DOT_STYLE FT_EMPTY_STYLE
37 
38 ................................................... Rank Title Year Rating
39 : Rank : Title : Year : Rating : 1 The Shawshank Redemption 1994 9.5
40 :......:..........................:......:........: 2 12 Angry Men 1957 8.8
41 : 1 : The Shawshank Redemption : 1994 : 9.5 : 3 It's a Wonderful Life 1946 8.6
42 : 2 : 12 Angry Men : 1957 : 8.8 :
43 : 3 : It's a Wonderful Life : 1946 : 8.6 : 4 2001: A Space Odyssey 1968 8.5
44 :......:..........................:......:........: 5 Blade Runner 1982 8.1
45 : 4 : 2001: A Space Odyssey : 1968 : 8.5 :
46 : 5 : Blade Runner : 1982 : 8.1 :
47 :......:..........................:......:........:
48 
49 
50 
51 
52  FT_EMPTY2_STYLE FT_SOLID_STYLE
53 
54  ┌──────┬──────────────────────────┬──────┬────────┐
55  Rank Title Year Rating │ Rank │ Title │ Year │ Rating │
56  1 The Shawshank Redemption 1994 9.5 ├──────┼──────────────────────────┼──────┼────────┤
57  2 12 Angry Men 1957 8.8 │ 1 │ The Shawshank Redemption │ 1994 │ 9.5 │
58  3 It's a Wonderful Life 1946 8.6 │ 2 │ 12 Angry Men │ 1957 │ 8.8 │
59  │ 3 │ It's a Wonderful Life │ 1946 │ 8.6 │
60  4 2001: A Space Odyssey 1968 8.5 ├──────┼──────────────────────────┼──────┼────────┤
61  5 Blade Runner 1982 8.1 │ 4 │ 2001: A Space Odyssey │ 1968 │ 8.5 │
62  │ 5 │ Blade Runner │ 1982 │ 8.1 │
63  └──────┴──────────────────────────┴──────┴────────╯
64 
65 
66 
67 
68  FT_SOLID_ROUND_STYLE FT_NICE_STYLE
69 
70 ╭──────┬──────────────────────────┬──────┬────────╮ ╔══════╦══════════════════════════╦══════╦════════╗
71 │ Rank │ Title │ Year │ Rating │ ║ Rank ║ Title ║ Year ║ Rating ║
72 ├──────┼──────────────────────────┼──────┼────────┤ ╠══════╬══════════════════════════╬══════╬════════╣
73 │ 1 │ The Shawshank Redemption │ 1994 │ 9.5 │ ║ 1 ║ The Shawshank Redemption ║ 1994 ║ 9.5 ║
74 │ 2 │ 12 Angry Men │ 1957 │ 8.8 │ ║ 2 ║ 12 Angry Men ║ 1957 ║ 8.8 ║
75 │ 3 │ It's a Wonderful Life │ 1946 │ 8.6 │ ║ 3 ║ It's a Wonderful Life ║ 1946 ║ 8.6 ║
76 ├──────┼──────────────────────────┼──────┼────────┤ ╟──────╫──────────────────────────╫──────╫────────╢
77 │ 4 │ 2001: A Space Odyssey │ 1968 │ 8.5 │ ║ 4 ║ 2001: A Space Odyssey ║ 1968 ║ 8.5 ║
78 │ 5 │ Blade Runner │ 1982 │ 8.1 │ ║ 5 ║ Blade Runner ║ 1982 ║ 8.1 ║
79 ╰──────┴──────────────────────────┴──────┴────────╯ ╚══════╩══════════════════════════╩══════╩════════╝
80 
81 
82 
83 
84  FT_DOUBLE_STYLE FT_DOUBLE2_STYLE
85 
86 ╔══════╦══════════════════════════╦══════╦════════╗ ╔══════╤══════════════════════════╤══════╤════════╗
87 ║ Rank ║ Title ║ Year ║ Rating ║ ║ Rank │ Title │ Year │ Rating ║
88 ╠══════╬══════════════════════════╬══════╬════════╣ ╠══════╪══════════════════════════╪══════╪════════╣
89 ║ 1 ║ The Shawshank Redemption ║ 1994 ║ 9.5 ║ ║ 1 │ The Shawshank Redemption │ 1994 │ 9.5 ║
90 ║ 2 ║ 12 Angry Men ║ 1957 ║ 8.8 ║ ╟──────┼──────────────────────────┼──────┼────────╢
91 ║ 3 ║ It's a Wonderful Life ║ 1946 ║ 8.6 ║ ║ 2 │ 12 Angry Men │ 1957 │ 8.8 ║
92 ╠══════╬══════════════════════════╬══════╬════════╣ ╟──────┼──────────────────────────┼──────┼────────╢
93 ║ 4 ║ 2001: A Space Odyssey ║ 1968 ║ 8.5 ║ ║ 3 │ It's a Wonderful Life │ 1946 │ 8.6 ║
94 ║ 5 ║ Blade Runner ║ 1982 ║ 8.1 ║ ╠══════╪══════════════════════════╪══════╪════════╣
95 ╚══════╩══════════════════════════╩══════╩════════╝ ║ 4 │ 2001: A Space Odyssey │ 1968 │ 8.5 ║
96  ╟──────┼──────────────────────────┼──────┼────────╢
97  ║ 5 │ Blade Runner │ 1982 │ 8.1 ║
98  ╚══════╧══════════════════════════╧══════╧════════╝
99 
100 
101 
102 
103  FT_BOLD_STYLE FT_BOLD2_STYLE
104 
105 ┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━┓ ┏━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━┓
106 ┃ Rank ┃ Title ┃ Year ┃ Rating ┃ ┃ Rank │ Title │ Year │ Rating ┃
107 ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━╋━━━━━━━━┫ ┣━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━┿━━━━━━━━┫
108 ┃ 1 ┃ The Shawshank Redemption ┃ 1994 ┃ 9.5 ┃ ┃ 1 │ The Shawshank Redemption │ 1994 │ 9.5 ┃
109 ┃ 2 ┃ 12 Angry Men ┃ 1957 ┃ 8.8 ┃ ┠──────┼──────────────────────────┼──────┼────────┨
110 ┃ 3 ┃ It's a Wonderful Life ┃ 1946 ┃ 8.6 ┃ ┃ 2 │ 12 Angry Men │ 1957 │ 8.8 ┃
111 ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━╋━━━━━━━━┫ ┠──────┼──────────────────────────┼──────┼────────┨
112 ┃ 4 ┃ 2001: A Space Odyssey ┃ 1968 ┃ 8.5 ┃ ┃ 3 │ It's a Wonderful Life │ 1946 │ 8.6 ┃
113 ┃ 5 ┃ Blade Runner ┃ 1982 ┃ 8.1 ┃ ┣━━━━━━┿━━━━━━━━━━━━━━━━━━━━━━━━━━┿━━━━━━┿━━━━━━━━┫
114 ┗━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━┻━━━━━━━━┛ ┃ 4 │ 2001: A Space Odyssey │ 1968 │ 8.5 ┃
115  ┠──────┼──────────────────────────┼──────┼────────┨
116  ┃ 5 │ Blade Runner │ 1982 │ 8.1 ┃
117  ┗━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━┛
118 
119 
120 
121 
122  FT_FRAME_STYLE
123 
124 ▛▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▜
125 ▌ Rank ┃ Title ┃ Year ┃ Rating ▐
126 ▌━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━╋━━━━━━━━▐
127 ▌ 1 ┃ The Shawshank Redemption ┃ 1994 ┃ 9.5 ▐
128 ▌ 2 ┃ 12 Angry Men ┃ 1957 ┃ 8.8 ▐
129 ▌ 3 ┃ It's a Wonderful Life ┃ 1946 ┃ 8.6 ▐
130 ▌━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━╋━━━━━━━━▐
131 ▌ 4 ┃ 2001: A Space Odyssey ┃ 1968 ┃ 8.5 ▐
132 ▌ 5 ┃ Blade Runner ┃ 1982 ┃ 8.1 ▐
133 ▙▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▟
Author
Seleznev Anton
See also
https://github.com/seleznevae/libfort to download the source code