commit 6a8c2f64a9efd177862df5af1dd5d951e03a5817 parent 6b163a21126f770e05ac9bdf948a46ff272cb3d9 Author: zerous Naveen Narayanan <zerous@nocebo.space> Date: Mon, 25 Nov 2019 16:34:29 +0100 Update stdout message format in client Update Makefile Diffstat:
M | Makefile | | | 4 | ++-- |
M | client.java | | | 4 | ++-- |
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -all: server client util acc servertask script group +all: server client util acc servertask script group clienttask server: javac server.java @@ -27,5 +27,5 @@ group: .PHONY: clean run clean: - rm server.class client.class util.class acc.class servertask.class script.class + rm server.class client.class util.class acc.class servertask.class script.class clienttask.class diff --git a/client.java b/client.java @@ -27,9 +27,9 @@ public class client { while (cexit == 0) { if (inputStr.available() > 0) { serv_mes = inputStr.readUTF(); - System.out.print(serv_mes + "> "); + System.out.print("\n" + serv_mes + "> "); } else - Thread.sleep(1000); + Thread.sleep(500); } inputStr.close();