summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2020-01-27 15:23:15 +0100
committertomsmeding <tom.smeding@gmail.com>2020-01-27 15:23:15 +0100
commit1d53369c17013dc9bcf35636696dce68e043c098 (patch)
tree6b2c8f6d39293cf66364155d75550ca18328bb94
parent04a84f262b6323f05c84470cfa6f02337aef8f0d (diff)
Indicate received linesHEADmaster
-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);
}