blob: 37cdcced283c32d77a8c2b2a7f3d4aa5c5746297 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "gbos.h"
/* count [n]: print n numbered lines (default 25) to observe terminal scrolling
and the OSK scroll-region. Each line is tagged so you can tell which lines
are visible after scrolling. */
void main(void) {
char *argv[4];
unsigned char argc = argv_parse(argv, 4);
unsigned char n = 25, i;
if (argc >= 1) n = atou(argv[0]);
for (i = 1; i <= n; i++) {
puts("line ");
putu(i);
puts(" ------------------");
nl();
}
}
|