openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/text-utils/more.c
static void erase_prompt(struct more_control* ctl, int col)
{

    if (ctl->prompt_len == 0)
        return;
    if (ctl->hard_tty)
    {
        putchar('\n');
    }
    else
    {
        if (col == 0)
            putchar('\r');
        if (!ctl->dumb_tty && ctl->erase_line)
            putp(ctl->erase_line);
        else
            printf("%*s", ctl->prompt_len - col, "");
    }
    ctl->prompt_len = 0;
}
/* Erase the rest of the prompt, assuming we are starting at column col. */
Erase the rest of the prompt, assuming we are starting at column col.
Erase the rest of the prompt assuming we are starting at column col .
static void erase_prompt(struct more_control* ctl, int col)
{
    if (ctl->prompt_len == 0)
        return;
    if (ctl->hard_tty)
    {
        putchar('\n');
    }
    else
    {
        if (col == 0)
            putchar('\r');
        if (!ctl->dumb_tty && ctl->erase_line)
            putp(ctl->erase_line);
        else
            printf("%*s", ctl->prompt_len - col, "");
    }
    ctl->prompt_len = 0;
}
static void erase_prompt ( struct more_control * ctl , int col ) { if ( ctl -> prompt_len == 0 ) return ; if ( ctl -> hard_tty ) { putchar ( ' \n ' ) ; } else { if ( col == 0 ) putchar ( ' \r ' ) ; if ( ! ctl -> dumb_tty && ctl -> erase_line ) putp ( ctl -> erase_line ) ; else printf ( " " , ctl -> prompt_len - col , " " ) ; } ctl -> prompt_len = 0 ; }
Erase the rest of the prompt, assuming we are starting at column col.
Erase the rest of the prompt assuming we are starting at column col .