summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netcatchat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netcatchat.cpp b/netcatchat.cpp
index c5cd48b..01d35a1 100644
--- a/netcatchat.cpp
+++ b/netcatchat.cpp
@@ -123,7 +123,7 @@ static void communicate(int sock) {
inbuffer.resize(prevsize + nr);
for (size_t idx; (idx = inbuffer.find('\n')) != string::npos; ) {
inbuffer[idx] = '\0';
- printf("\x1B[2K\x1B[G%s\n", inbuffer.data());
+ printf("\x1B[2K\x1B[G> \x1B[36m%s\x1B[0m\n", inbuffer.data());
inbuffer.erase(inbuffer.begin(), inbuffer.begin() + idx + 1);
}