jcs
/subtext
/amendments
/258
chat: char_bar can be long depending on terminal width, don't printf
jcs made amendment 258 over 2 years ago
--- chat.c Fri Jan 1 02:03:13 1904
+++ chat.c Tue Sep 27 12:44:42 2022
@@ -182,9 +182,10 @@ chat_start(struct session *s, char *with_node)
len++;
}
- session_printf(s, "\r%s%s%s\r\n",
- ansi(s, ANSI_REVERSE, ANSI_ERASE_LINE, ANSI_END),
- chat_bar,
+ session_printf(s, "\r%s",
+ ansi(s, ANSI_REVERSE, ANSI_ERASE_LINE, ANSI_END));
+ session_output(s, chat_bar, len);
+ session_printf(s, "%s\r\n",
ansi(s, ANSI_RESET, ANSI_END));
session_flush(s);