6 void drawtext(int x, int y, const char *s)
9 vga_drawchar(x++, y, *s++);
18 char twirl[] = "-\\|/";
24 scroll = line <= 24 ? 0 : line - 24;
25 row = line <= 24 ? line : 24;
26 sprintf(buf, "line %d (scroll %d [%d])", line, scroll, scroll % 25);
31 vga_setcolor(VGA_YELLOW | VGA_BRIGHT, VGA_BLACK);
32 drawtext(line & 7, row, buf);
34 for(i=0; i<65536 * 4; i++) {
35 buf[0] = twirl[(i >> 15) & 3];
37 vga_setcolor(VGA_WHITE, VGA_BLACK);
38 drawtext(50, row, buf);