1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java Fri Dec 27 00:57:34 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/formatting/TabularFormatter.java Fri Dec 27 14:05:38 2013 +0100
1.3 @@ -35,6 +35,7 @@
1.4 private ColorfulPrintWriter out;
1.5 private boolean firstResult = true;
1.6 private int[] columnWidth;
1.7 + private final boolean asciiNostalgia = false;
1.8
1.9 public TabularFormatter(FormatterContext formatterContext) {
1.10 super(formatterContext);
1.11 @@ -202,6 +203,12 @@
1.12 }
1.13
1.14 private void printTableBorder(String border) {
1.15 + if (asciiNostalgia) {
1.16 + border = border.replaceAll("─", "-");
1.17 + border = border.replaceAll("│", "|");
1.18 + border = border.replaceAll("[╭┬╮├┼┤╰┴╯]", "+");
1.19 + }
1.20 +
1.21 out.print(TerminalColor.Green, border);
1.22 }
1.23