Buid 0.1.1.19

This commit is contained in:
2021-09-14 18:57:06 +03:00
parent e3b3584734
commit 581c6b92fe
22 changed files with 10988 additions and 52 deletions

View File

@ -20,10 +20,11 @@ string ConsoleCommands[] =
"reboot",
"restart",
"dir",
"cat"
"cat",
"task"
};
int32 ConsoleCommandsCount = 13;
int32 ConsoleCommandsCount = 14;
/*****************************************
* osver - get os info *
@ -335,3 +336,31 @@ void CommandCat (string argv[], int32 argc)
kfree(buffer);
VfsClose(&f);
}
#include <tasking.h>
void task()
{
Point p = {5, 1};
uint32 t = 0;
while (1)
{
ConsoleCursorGoto(p);
ConsoleWrite("Hello world! %u ", t++);
}
}
void CommandTask()
{
ConsoleClear();
TaskCreate(task);
Point p = {5, 2};
uint32 t = 0;
while (1)
{
ConsoleCursorGoto(p);
ConsoleWrite("%#Hello world! %u ", ColorLightBlue, t++);
}
}

View File

@ -76,6 +76,7 @@ loop:
case 10: SystemReboot(); break;
case 11: CommandDir(params, count); break;
case 12: CommandCat(params, count); break;
case 13: CommandTask(); break;
default: ConsoleWrite ("%#! Command %#%s%# was not implemented (yet)!\n",
Color(0,ColorLightRed), Color(0,ColorWhite), params[0], Color(0,ColorLightRed)); break;