| 754 | } |
| 755 | |
| 756 | void printModeInfo() { |
| 757 | printf("Available output modes:\n"); |
| 758 | printf("%sbox (default):%sTables using unicode box-drawing characters\n", TAB, TAB); |
| 759 | printf("%scolumn:%sOutput in columns\n", TAB, TAB); |
| 760 | printf("%scsv:%sComma-separated values\n", TAB, TAB); |
| 761 | printf("%shtml:%sHTML table\n", TAB, TAB); |
| 762 | printf("%sjson:%sResults in a JSON array\n", TAB, TAB); |
| 763 | printf("%sjsonlines:%sResults in a NDJSON format\n", TAB, TAB); |
| 764 | printf("%slatex:%sLaTeX tabular environment code\n", TAB, TAB); |
| 765 | printf("%sline:%sOne value per line\n", TAB, TAB); |
| 766 | printf("%slist:%sValues delimited by \"|\"\n", TAB, TAB); |
| 767 | printf("%smarkdown:%sMarkdown table\n", TAB, TAB); |
| 768 | printf("%stable:%sTables using ASCII characters\n", TAB, TAB); |
| 769 | printf("%stsv:%sTab-separated values\n", TAB, TAB); |
| 770 | printf("%strash:%sNo output\n", TAB, TAB); |
| 771 | } |
| 772 | |
| 773 | void EmbeddedShell::setMode(const std::string& modeString) { |
| 774 | if (modeString.empty()) { |