aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpowwow@askgustav.com <powwow@askgustav.com>2021-07-08 13:44:02 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2021-07-09 15:28:15 (GMT)
commit1fbc160a98cbc5d83949c057f89118707baa5da3 (patch)
treecea1990dde4e05f11fefa22adce950a098d8ac7c
parent8569eb93a7fa91a446fb211d31fb6e227d0aab65 (diff)
downloadpowwow-1fbc160a98cbc5d83949c057f89118707baa5da3.zip
powwow-1fbc160a98cbc5d83949c057f89118707baa5da3.tar.gz
powwow-1fbc160a98cbc5d83949c057f89118707baa5da3.tar.bz2
stop emitting newline in no-echo mode
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 28d1592..3c7fe9b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1394,11 +1394,8 @@ static void get_user_input(void)
edbuf[edlen] = '\0';
#ifdef BUG_ANSI
if (edattrbg)
- tty_printf("%s\n", edattrend);
- else
+ tty_puts(edattrend);
#endif
- tty_putc('\n');
-
tcp_write(tcp_fd, edbuf);
edlen = 0;
typed[nchars = 0] = 0;