Attempt to fix Linux hang
This commit is contained in:
parent
3562653d7e
commit
1570e9f069
36
main.cpp
36
main.cpp
@ -116,27 +116,19 @@ auto execute_as_client(std::string ipaddress, std::uint16_t port)
|
|||||||
sscout << "Metrics Saved to metrics.json\n";
|
sscout << "Metrics Saved to metrics.json\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
auto operator<<(std::basic_ostream<wchar_t>& os, const std::string& str) -> std::basic_ostream<wchar_t>&
|
|
||||||
{
|
|
||||||
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
|
|
||||||
std::wstring wide = converter.from_bytes(str);
|
|
||||||
os << wide;
|
|
||||||
return os;
|
|
||||||
}
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
term::use_unicode();
|
term::use_unicode();
|
||||||
sswcout
|
sscout
|
||||||
<< L"┌───────────╖\n"
|
<< "┌───────────╖\n"
|
||||||
<< L"│ Project 1 ║\n"
|
<< "│ Project 1 ║\n"
|
||||||
<< L"╘═══════════╝\n";
|
<< "╘═══════════╝\n";
|
||||||
|
|
||||||
sswcout
|
sscout
|
||||||
<< L"┌────────────────────╖\n"
|
<< "┌────────────────────╖\n"
|
||||||
<< L"│ Riley Strickland ║\n"
|
<< "│ Riley Strickland ║\n"
|
||||||
<< L"│ Jacob Jerris ║\n"
|
<< "│ Jacob Jerris ║\n"
|
||||||
<< L"│ Jacqueline Shrader ║\n"
|
<< "│ Jacqueline Shrader ║\n"
|
||||||
<< L"╘════════════════════╝\n";
|
<< "╘════════════════════╝\n";
|
||||||
|
|
||||||
net::prologue();
|
net::prologue();
|
||||||
const auto mode = get_input<int>("Select Mode\n\t1. Server\n\t2. Client\n>:", "Invalid Choice!",
|
const auto mode = get_input<int>("Select Mode\n\t1. Server\n\t2. Client\n>:", "Invalid Choice!",
|
||||||
@ -153,10 +145,10 @@ int main() {
|
|||||||
}
|
}
|
||||||
net::epilogue();
|
net::epilogue();
|
||||||
|
|
||||||
sswcout
|
sscout
|
||||||
<< L"┌────────────────────╖\n"
|
<< "┌────────────────────╖\n"
|
||||||
<< L"│ Thanks for using ║\n"
|
<< "│ Thanks for using ║\n"
|
||||||
<< L"╘════════════════════╝\n";
|
<< "╘════════════════════╝\n";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user