diff options
author | crupest <crupest@outlook.com> | 2021-06-07 19:24:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-06-07 19:24:39 +0800 |
commit | ce6348fa3731326046d8d69ec2171c1648a3d7d6 (patch) | |
tree | fbfd5a657de86dab73fbab446a8c0955bbd76104 /computer-network-experiment/client.cpp | |
parent | ad9a2ad2a3f0488127e3fb618e4b30a40b50f57d (diff) | |
download | life-ce6348fa3731326046d8d69ec2171c1648a3d7d6.tar.gz life-ce6348fa3731326046d8d69ec2171c1648a3d7d6.tar.bz2 life-ce6348fa3731326046d8d69ec2171c1648a3d7d6.zip |
...
Diffstat (limited to 'computer-network-experiment/client.cpp')
-rw-r--r-- | computer-network-experiment/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/computer-network-experiment/client.cpp b/computer-network-experiment/client.cpp index 5d5075e..922ecdc 100644 --- a/computer-network-experiment/client.cpp +++ b/computer-network-experiment/client.cpp @@ -48,7 +48,8 @@ int Main() { std::string s(buffer, received_number);
- SendOutput(CRUT("Received message:\n{}\n"), ConvertCharString(s));
+ SendOutput(OutputColor::Green, CRUT("Received message:\n"));
+ SendOutput(OutputColor::Normal, CRUT("{}\n"), ConvertCharString(s));
CloseSocket(client_socket);
return 0;
|