src/onyx.c
// Just having fun with some visual output - brendanfh 2020/12/14
Just having fun with some visual output - brendanfh 2020/12/14
Just having fun with some visual output - brendanfh 2020 / 12 / 14
static void output_dummy_progress_bar(CompilerState* compiler_state) {
    EntityHeap* eh = &compiler_state->prog_info.entities;
    printf("\e[2;1H");
    for (i32 i = 0; i < Entity_State_Count - 1; i++) {
        printf("%20s (%4d) | ", entity_state_strings[i], eh->state_count[i]);
        printf("\e[0K");
        for (i32 c = 0; c < eh->state_count[i] * 50 / bh_arr_length(eh->entities); c++) printf("\xe2\x96\x88");
        printf("\n");
    }
}
static void output_dummy_progress_bar ( CompilerState * compiler_state ) { EntityHeap * eh = & compiler_state -> prog_info . entities ; printf ( " \e " ) ; for ( i32 i = 0 ; i < Entity_State_Count - 1 ; i ++ ) { printf ( " " , entity_state_strings [ i ] , eh -> state_count [ i ] ) ; printf ( " \e " ) ; for ( i32 c = 0 ; c < eh -> state_count [ i ] * 50 / bh_arr_length ( eh -> entities ) ; c ++ ) printf ( " \xe2 \x96 \x88 " ) ; printf ( " \n " ) ; } }
Just having fun with some visual output - brendanfh 2020/12/14
Just having fun with some visual output - brendanfh 2020 / 12 / 14