fix line printing - lchat - A line oriented chat front end for ii.
(HTM) git clone git://git.suckless.org/lchat
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit b1db0ac6e9850a858120ac43596405208a3fc581
(DIR) parent 91a0a6e7a10a089d8e3d734bb41dcad9bbd654a6
(HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Sun, 25 Oct 2015 14:13:23 +0100
fix line printing
Diffstat:
M lchat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/lchat.c b/lchat.c
@@ -58,7 +58,7 @@ main(void)
while ((c = getchar()) != 13) {
if (sl_keystroke(sl, c) == -1)
errx(EXIT_FAILURE, "sl_keystroke");
- printf("c: %d: buf: %s\r\n", c, sl->buf);
+ printf("\r\033[2K%s", sl->buf);
}
puts("\r");