Create a custom border style
masterTo create a custom border style, you must provide a Character[] of length 29. To understand which index controls which part of the table, you can use a diagnostic string of unique characters.
Use the following pattern to map the 29 indices to their visual locations in the table structure:
// Diagnostic tool to see which index maps to which table part
Character[] borderStyles = "ABCDEFGHIJKLMNOPQRSTUVWXYZ123".chars()
.mapToObj(c -> (char)c)
.toArray(Character[]::new);
// Use this array in AsciiTable.getTable() to see the mapping in the outputTemplate for a custom style array:
public static final Character[] CUSTOM = {
null, // Index 0 (A)
null, // Index 1 (B)
null, // Index 2 (C)
null, // Index 3 (D)
null, // Index 4 (E)
null, // Index 5 (F)
null, // Index 6 (G)
null, // Index 7 (H)
null, // Index 8 (I)
null, // Index 9 (J)
null, // Index 10 (K)
null, // Index 11 (L)
null, // Index 12 (M)
null, // Index 13 (N)
null, // Index 14 (O)
null, // Index 15 (P)
null, // Index 16 (Q)
null, // Index 17 (R)
null, // Index 18 (S)
null, // Index 19 (T)
null, // Index 20 (U)
null, // Index 21 (V)
null, // Index 22 (W)
null, // Index 23 (X)
null, // Index 24 (Y)
null, // Index 25 (Z)
null, // Index 26 (1)
null, // Index 27 (2)
null // Index 28 (3)
};