Buid 0.1.1.19
This commit is contained in:
		@@ -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++);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user