From 8a3605f8182bc8d552e1f6b82130d7bb690df6e2 Mon Sep 17 00:00:00 2001 From: fang Date: Wed, 17 Feb 2021 17:17:46 +0100 Subject: [PATCH] term: rename _show_clear to _clear_line --- pkg/urbit/vere/io/term.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/urbit/vere/io/term.c b/pkg/urbit/vere/io/term.c index bf7feefdce..916c106284 100644 --- a/pkg/urbit/vere/io/term.c +++ b/pkg/urbit/vere/io/term.c @@ -467,10 +467,10 @@ _term_it_send_cord(u3_utty* uty_u, u3z(txt); } -/* _term_it_show_clear(): clear to the beginning of the current line. +/* _term_it_clear_line(): clear line of cursor */ static void -_term_it_show_clear(u3_utty* uty_u) +_term_it_clear_line(u3_utty* uty_u) { if ( uty_u->tat_u.siz.col_l ) { _term_it_dump(uty_u, TERM_LIT("\r")); @@ -545,7 +545,7 @@ _term_it_refresh_line(u3_utty* uty_u) c3_w wor_w = tat_u->mir.wor_w; c3_w cus_w = tat_u->mir.cus_w; - _term_it_show_clear(uty_u); + _term_it_clear_line(uty_u); _term_it_show_line(uty_u, wor_w); _term_it_move_cursor(uty_u, 0, cus_w); } @@ -1437,14 +1437,14 @@ _term_ef_blit(u3_utty* uty_u, case c3__klr: { if ( c3n == u3_Host.ops_u.tem ) { - _term_it_show_clear(uty_u); + _term_it_clear_line(uty_u); } _term_it_show_stub(uty_u, u3k(u3t(blt))); } break; case c3__lin: { if ( c3n == u3_Host.ops_u.tem ) { - _term_it_show_clear(uty_u); + _term_it_clear_line(uty_u); } _term_it_show_tour(uty_u, u3k(u3t(blt))); } break; @@ -1472,10 +1472,10 @@ _term_ef_blit(u3_utty* uty_u, // XX check u3_Host.ops_u.tem ? // XX this looks to be broken, - // multiple calls to _show_clear will discard the mirror state + // multiple calls to _clear_line will discard the mirror state // if ( c3y == u3a_is_atom(txt) ) { - _term_it_show_clear(uty_u); + _term_it_clear_line(uty_u); _term_it_send_cord(uty_u, u3k(txt));