From 8e1396ac31bd5a3ce24855beaa3e2767a158a704 Mon Sep 17 00:00:00 2001 From: Ben de Roo Date: Fri, 20 Feb 2026 13:54:26 +0100 Subject: [PATCH] Update client.py --- client.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/client.py b/client.py index a19e677..c5612d3 100644 --- a/client.py +++ b/client.py @@ -97,16 +97,23 @@ while not current_user: clear() w, _ = term_size() print(blauw_bg + wit + "Terminal Chat ".center(w) + reset) + + print( groen + "========================================") + print("Welkom bij De Terminal Chat") + print("========================================" + reset) + print() print_white("1. inloggen") print_white("2. nieuw account") + print() keuze = input(wit + " > " + reset) + print() if keuze == "1": current_user = login() elif keuze == "2": signup() -host = "192.168.254.36" -port = 44703 +host = "127.0.0.1" +port = 44705 try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) @@ -221,7 +228,7 @@ def chat_session(chatkeuze): }).encode("utf-8")) while True: - print_white("Beschikbare chats:") + print_white(" --- Beschikbare chats: --- ") for i, chat in enumerate(chat_names, start=1): print_white(f"{i}. {chat}") print_white(f"{len(chat_names)+1}. Nieuwe chat aanmaken")