MCPcopy Create free account
hub / github.com/NetHack/NetHack / vga_cl_end

Function vga_cl_end

sys/msdos/vidvga.c:264–276  ·  view source on GitHub ↗

clear to end of line */

Source from the content-addressed store, hash-verified

262
263/* clear to end of line */
264void vga_cl_end(int col, int row)
265{
266 int count;
267
268 /*
269 * This is being done via character writes.
270 * This should perhaps be optimized for speed by using VGA write
271 * mode 2 methods as did term_clear_screen()
272 */
273 for (count = col; count < (CO - 1); ++count) {
274 vga_WriteChar(' ', count, row, BACKGROUND_VGA_COLOR);
275 }
276}
277
278/* clear to end of screen */
279void vga_cl_eos(int cy)

Callers 1

cl_endFunction · 0.85

Calls 1

vga_WriteCharFunction · 0.85

Tested by

no test coverage detected