nmps

simple network-based command-line rpg wrote in c99
git clone git://git.kocotian.pl/nmps.git
Log | Files | Refs | LICENSE

commit 76be855efa3512c66dc6d3b54fd93f736091c440
parent f83bcafa89be5d0de10779985627ab684fc9fdf5
Author: kocotian <kocotian@kocotian.pl>
Date:   Sun,  6 Dec 2020 19:59:52 +0100

fix

Diffstat:
Mnmps.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/nmps.c b/nmps.c @@ -247,12 +247,11 @@ static void eventhandler(char *host, char *port) { pid_t parentpid = getpid(); - if (fork() == 0) { + if (fork() == 0) while (1) { - command("eventSender", "", host, port, "\r"); + command("eventSender", "", host, port, "\033[2K\r"); kill(parentpid, SIGUSR1); } - } } static void