8 void drawtext(int x, int y, const char *s)
11 vga_drawchar(x++, y, *s++);
20 char twirl[] = "-\\|/";
29 scroll = line <= 24 ? 0 : line - 24;
30 row = line <= 24 ? line : 24;
31 sprintf(buf, "line %d (scroll %d [%d])", line, scroll, scroll % 25);
36 vga_setcolor(VGA_YELLOW | VGA_BRIGHT, VGA_BLACK);
37 drawtext(line & 7, row, buf);
39 for(i=0; i<65536 * 16; i++) {
40 buf[0] = twirl[(i >> 15) & 3];
42 vga_setcolor(VGA_WHITE, VGA_BLACK);
43 drawtext(50, row, buf);