BigOS/user/test.c
2022-12-23 12:59:26 +08:00

40 lines
745 B
C

#include "type.h"
#include "const.h"
#include "protect.h"
#include "string.h"
#include "proc.h"
#include "global.h"
#include "proto.h"
#include "stdio.h"
int main(int arg, char *argv[])
{
int stdin = open("dev_tty0", O_RDWR);
int stdout = open("dev_tty0", O_RDWR);
int stderr = open("dev_tty0", O_RDWR);
char buf[1024];
int pid;
int times = 0;
for (int i = 0; i < 20; ++i)
{
printf("test %d\n", i);
}
for (int i = 0; i < 2; ++i)
{
printf("\x1b[42;31m1111111111");
// printf("\x1b[m1111111111");
printf("2222222222");
printf("3333333333");
printf("4444444444");
printf("5555555555");
printf("6666666666");
printf("7777777777");
printf("8888888888");
printf("9999999999\r\b\b\n");
}
while (1)
;
return 0;
}