From 3911efcb1588481f9d95c91e39fe470bcc5a50a5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 6 May 2022 09:46:16 +0300 Subject: Autocommit at 06.05.2022 @ 09:46 --- src/ConsoleInterface/Toolbox.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/ConsoleInterface/Toolbox.cpp') diff --git a/src/ConsoleInterface/Toolbox.cpp b/src/ConsoleInterface/Toolbox.cpp index 42b0ffd..35aee1c 100644 --- a/src/ConsoleInterface/Toolbox.cpp +++ b/src/ConsoleInterface/Toolbox.cpp @@ -3,7 +3,7 @@ void clear() { // Clears console on Linux // Source: https://stackoverflow.com/a/52895729/12036073 - std::cout << u8"\033[2J\033[1;1H"; + // std::cout << u8"\033[2J\033[1;1H"; } int orderedListIndex = 1; @@ -33,8 +33,13 @@ void errorBox(const char* message) { } void __printTableColumnHeader(unsigned start, unsigned count) { + for (unsigned i = 0; i < count - 1; i++, start++) + std::cout << ":" << ((start < 100) ? " " : "") << start << ((start < 10) ? " " : ""); + std::cout << ":" << std::endl; + for (unsigned i = 0; i < count - 1; i++) - std::cout << ":" << + std::cout << "...."; + std::cout << "." << std::endl; } void table(unsigned startNumber, unsigned columns, const char* items) { -- cgit v1.3.1-23-gd82d