gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groupchat] [PATCH] beautify quitting message


From: Marcos Marado
Subject: [groupchat] [PATCH] beautify quitting message
Date: Fri, 17 Apr 2020 13:21:01 +0100

When running as a client, and the application ends but not caused by
user input (C-c), the there is no carriage return after the exit
message, and so the 'quitting' message will drag the terminal prompt
forward.

This patch fixes that cosmetic bug by adding a carriage return to the
quitting message.
---
 src/groupchat.nim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/groupchat.nim b/src/groupchat.nim
index d35816b..323f422 100644
--- a/src/groupchat.nim
+++ b/src/groupchat.nim
@@ -235,7 +235,7 @@ proc main() =
     gnunetApp.doWork()
     stdout.flushFile()

-  echo "quitting"
+  echo "quitting\r"
   stdout.flushFile()
   stdin.flushFile()

-- 
2.20.1

Attachment: 0001-beautify-quitting-message.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]