@@ -37,9 +37,9 @@ std::string truncateString(const std::string& str, size_t maxLength) {
3737// Helper function to format a table row with proper alignment
3838std::string formatTableRow (const std::string& content, int totalWidth = 70 ) {
3939 std::string truncated =
40- truncateString (content, totalWidth - 4 ); // Leave space for "│ " and " │ "
40+ truncateString (content, totalWidth - 4 ); // Leave space for "| " and " | "
4141 std::ostringstream oss;
42- oss << " │ " << std::left << std::setw (totalWidth - 4 ) << truncated << " │ " ;
42+ oss << " | " << std::left << std::setw (totalWidth - 4 ) << truncated << " | " ;
4343 return oss.str ();
4444}
4545
@@ -50,22 +50,22 @@ std::string createTableBorder(const std::string& leftChar,
5050 const std::string& fillChar,
5151 int width = 70 ) {
5252 std::string border;
53- if (leftChar == " ┌ " )
53+ if (leftChar == " + " )
5454 border = " +" ;
55- else if (leftChar == " ├ " )
55+ else if (leftChar == " + " )
5656 border = " +" ;
57- else if (leftChar == " └ " )
57+ else if (leftChar == " + " )
5858 border = " +" ;
5959 else
6060 border = leftChar;
6161
6262 border += std::string (width - 2 , ' -' );
6363
64- if (rightChar == " ┐ " )
64+ if (rightChar == " + " )
6565 border += " +" ;
66- else if (rightChar == " ┤ " )
66+ else if (rightChar == " + " )
6767 border += " +" ;
68- else if (rightChar == " ┘ " )
68+ else if (rightChar == " + " )
6969 border += " +" ;
7070 else
7171 border += rightChar;
@@ -77,10 +77,10 @@ std::string createTableBorder(const std::string& leftChar,
7777void printDisplayInfo (const Display& display, bool isPrimary = false ) {
7878 const int tableWidth = 70 ;
7979
80- std::cout << createTableBorder (" ┌ " , " ┐ " , " ─ " , tableWidth) << std::endl;
80+ std::cout << createTableBorder (" + " , " + " , " - " , tableWidth) << std::endl;
8181 std::cout << formatTableRow (" Display: " + display.name , tableWidth)
8282 << std::endl;
83- std::cout << createTableBorder (" ├ " , " ┤ " , " ─ " , tableWidth) << std::endl;
83+ std::cout << createTableBorder (" + " , " + " , " - " , tableWidth) << std::endl;
8484 std::cout << formatTableRow (" ID: " + display.id , tableWidth) << std::endl;
8585
8686 // Format position string
@@ -139,7 +139,7 @@ void printDisplayInfo(const Display& display, bool isPrimary = false) {
139139 std::cout << formatTableRow (modelStr, tableWidth) << std::endl;
140140 }
141141
142- std::cout << createTableBorder (" └ " , " ┘ " , " ─ " , tableWidth) << std::endl;
142+ std::cout << createTableBorder (" + " , " + " , " - " , tableWidth) << std::endl;
143143}
144144
145145int main () {
@@ -196,8 +196,8 @@ int main() {
196196 }
197197
198198 const int summaryWidth = 60 ;
199- std::cout << " 📊 SUMMARY:" << std::endl;
200- std::cout << createTableBorder (" ┌ " , " ┐ " , " ─ " , summaryWidth) << std::endl;
199+ std::cout << " SUMMARY:" << std::endl;
200+ std::cout << createTableBorder (" + " , " + " , " - " , summaryWidth) << std::endl;
201201
202202 // Format each summary line properly
203203 std::string totalDisplaysStr =
@@ -218,17 +218,17 @@ int main() {
218218 std::string scaleRangeStr = scaleRangeStream.str ();
219219 std::cout << formatTableRow (scaleRangeStr, summaryWidth) << std::endl;
220220
221- std::cout << createTableBorder (" └ " , " ┘ " , " ─ " , summaryWidth) << std::endl;
221+ std::cout << createTableBorder (" + " , " + " , " - " , summaryWidth) << std::endl;
222222
223223 } catch (const std::exception& e) {
224- std::cerr << " ❌ Error: " << e.what () << std::endl;
224+ std::cerr << " Error: " << e.what () << std::endl;
225225 return 1 ;
226226 } catch (...) {
227- std::cerr << " ❌ Unknown error occurred" << std::endl;
227+ std::cerr << " Unknown error occurred" << std::endl;
228228 return 1 ;
229229 }
230230
231- std::cout << " \n ✅ Display information retrieved successfully!" << std::endl;
231+ std::cout << " \n Display information retrieved successfully!" << std::endl;
232232
233233 // Test C API
234234 std::cout << " \n === Testing C API ===" << std::endl;
0 commit comments