aboutsummaryrefslogtreecommitdiffstats
path: root/util/telnet-client.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-14 20:05:24 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-05-14 20:05:24 +0200
commitd3e5f24409bd55e9267f63b93c80e51f86a75e20 (patch)
tree355fcf0d6d7fc988f6ddb0d3c2f0ff82e9d3911c /util/telnet-client.c
parent4d2cdc7986e9a21b74d1a9c1dc1cadc6694ef559 (diff)
telnet: Flush the console after every character
Make sure that every character is written to the stdout. This way typing 'help' will always flush everything.
Diffstat (limited to 'util/telnet-client.c')
-rw-r--r--util/telnet-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/telnet-client.c b/util/telnet-client.c
index d8346e4..6e17726 100644
--- a/util/telnet-client.c
+++ b/util/telnet-client.c
@@ -94,6 +94,7 @@ static void _event_handler(telnet_t *telnet, telnet_event_t *ev,
/* data received */
case TELNET_EV_DATA:
printf("%.*s", (int)ev->size, ev->buffer);
+ fflush(stdout);
break;
/* data must be sent */
case TELNET_EV_SEND: