truth-table with mode
pretty printing the truth table