86 lines
1.5 KiB
C
86 lines
1.5 KiB
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("\x1b[5F");
|
|
// printf("8888888888");
|
|
// printf("9999999999\r\b\b\n");
|
|
// }
|
|
printf("\x1b[33m");
|
|
|
|
for (int i = 0; i < 40; i++)
|
|
{
|
|
printf("%d", i);
|
|
printf("11111111111111111\n");
|
|
}
|
|
printf("\x1b[31;47m555555555555\x1b[m");
|
|
|
|
// Cursor Up
|
|
// printf("\x1b[2A");
|
|
|
|
// Cursor down
|
|
// printf("\x1b[2B");
|
|
|
|
// Cursor Forward
|
|
// printf("\x1b[20C");
|
|
|
|
// Cursor Back
|
|
// printf("\x1b[2D");
|
|
|
|
// Cursor Next Line
|
|
// printf("\x1b[3E");
|
|
|
|
// Cursor Previous Line
|
|
// printf("\x1b[3F");
|
|
|
|
// Cursor Horizontal Absolute
|
|
// printf("\x1b[2G");
|
|
|
|
// Cursor Position ; H or f
|
|
// printf("\x1b[3;5H");
|
|
|
|
// Erase in Display
|
|
// printf("\x1b[3J");
|
|
|
|
// Erase in Line
|
|
// printf("\x1b[K");
|
|
|
|
// Scroll Up
|
|
// printf("\x1b[13S");
|
|
|
|
// Scroll Down
|
|
// printf("\x1b[13T");
|
|
|
|
while (1)
|
|
;
|
|
return 0;
|
|
}
|