src/vga.c
/***
 * either enable or disable vga cursor
 */
either enable or disable vga cursor
either enable or disable vga cursor
void vga_set_cursor_enable(bool enabled) {
    uchar start_reg_val = vga_crt_reg_get(CRT_CURSOR_START);
    if (!enabled) start_reg_val = start_reg_val | 0x20;
    else start_reg_val = start_reg_val & 0xDF;
    vga_crt_reg_set(CRT_CURSOR_START, start_reg_val);
}
void vga_set_cursor_enable ( bool enabled ) { uchar start_reg_val = vga_crt_reg_get ( CRT_CURSOR_START ) ; if ( ! enabled ) start_reg_val = start_reg_val | 0x20 ; else start_reg_val = start_reg_val & 0xDF ; vga_crt_reg_set ( CRT_CURSOR_START , start_reg_val ) ; }
either enable or disable vga cursor
either enable or disable vga cursor
// enable/disable is bit 5