hunt/display.c
/*
 * display_clear_eol:
 *	clear to end of line, without moving cursor
 */
clear to end of line, without moving cursor
clear to end of line without moving cursor
void
display_clear_eol()
{
        if (CE != NULL)
                tputs(CE, 1, __cputchar);
        else {
                fwrite(blanks, sizeof (char), SCREEN_WIDTH - cur_col, stdout);
                if (COLS != SCREEN_WIDTH)
                        mvcur(cur_row, SCREEN_WIDTH, cur_row, cur_col);
                else if (AM)
                        mvcur(cur_row + 1, 0, cur_row, cur_col);
                else
                        mvcur(cur_row, SCREEN_WIDTH - 1, cur_row, cur_col);
        }
        memcpy(&screen[cur_row][cur_col], blanks, SCREEN_WIDTH - cur_col);
}
void display_clear_eol ( ) { if ( CE != NULL ) tputs ( CE , 1 , __cputchar ) ; else { fwrite ( blanks , sizeof ( char ) , SCREEN_WIDTH - cur_col , stdout ) ; if ( COLS != SCREEN_WIDTH ) mvcur ( cur_row , SCREEN_WIDTH , cur_row , cur_col ) ; else if ( AM ) mvcur ( cur_row + 1 , 0 , cur_row , cur_col ) ; else mvcur ( cur_row , SCREEN_WIDTH - 1 , cur_row , cur_col ) ; } memcpy ( & screen [ cur_row ] [ cur_col ] , blanks , SCREEN_WIDTH - cur_col ) ; }
display_clear_eol:
      clear to end of line, without moving cursor
display_clear_eol : clear to end of line without moving cursor