/* Hides the highlighted region, returning it to normal colors. */ static void selarea_hide(void) { size_t i; for (i = Selarea.sa_startoff; i <= Selarea.sa_endoff; i++) char_invert(0, i); }
/* Highlights the selected region. */ static void selarea_show(void) { size_t i; selarea_calculate(); for (i = Selarea.sa_startoff; i <= Selarea.sa_endoff; i++) char_invert(0, i); }
/* Shows the mouse pointer, if not visible. */ static void cursor_show(void) { if (!Selmouse.sm_visible) { char_invert(Selmouse.sm_y, Selmouse.sm_x); Selmouse.sm_visible = 1; } }
/* Hides the mouse pointer, if visible. */ static void cursor_hide(void) { if (Selmouse.sm_visible) { char_invert(Selmouse.sm_y, Selmouse.sm_x); Selmouse.sm_visible = 0; } }
/* ------------------------------------------------------------------------- */ dms_t* dms_invert(dms_t* target, const dms_t* source) { int i; for (i = 0; i < 0x10; i++) { target->line[i] = char_invert(source->line[i]); } target->line[0x10] = 0; return target; } /* dms_invert() */