AmendHub

Download:

jcs

/

subtext

/

amendments

/

164

board+session: Flush after blobs of output, not after every line


jcs made amendment 164 about 1 year ago
--- board.c Sun Jun 12 22:24:45 2022 +++ board.c Wed Jun 22 16:00:37 2022 @@ -341,8 +341,8 @@ board_list_posts(struct session *s, struct board *boar post.parent_post_id != 0 && n == 0 ? "Re: " : "", post.parent_post_id == 0 || n == 0 ? thread.subject : indent_s, true ? "" : ansi(s, ANSI_RESET, ANSI_END)); - session_flush(s); } + session_flush(s); if (thread.subject != NULL) free(thread.subject); --- session.c Fri Jun 17 21:18:04 2022 +++ session.c Wed Jun 22 15:59:23 2022 @@ -1236,7 +1236,6 @@ session_recents(struct session *s) slog.username, slog.via, slog.tspeed); - session_flush(s); } session_output(s, "\r\n", 2); @@ -1283,7 +1282,6 @@ session_who(struct session *s) sessions[n]->via, sessions[n]->tspeed, idle_s); - session_flush(s); } session_output(s, "\r\n", 2); @@ -1309,11 +1307,10 @@ print_options: if (show_opts) { for (n = 0; n < nopts; n++) { opt = &opts[n]; - session_printf(s, "{{B}}%c{{/B}}: %s\r\n", opt->key[0], opt->title); - session_flush(s); } + session_flush(s); } for (;;) {