#include "nOS.h"

int i;
int main(void)
{
 printf("Loading nOS ver 1.0 . . . \n\r");
 printf("Loaded Successfully . . .\n\r");
 printf("Press Any Key To Continue . . .\n\r");
 i=scanf();
 cls();
 printf("nOS ver 1.0\n\r");
 printf("\n\r");
 printf("HELP\n\r");
 printf("Accessible Commands\n\r");
 printf("help    - Shows Help\n\r");
 printf("cls     - Clears The Screen\n\r");
 printf("ver     - Shows Version Info.\n\r");
 printf("about   - Shows Info About Me.\n\r");
 printf("restart - Restarts Your System.\n\r");
 printf("exit    - Shuts Down Your System.\n\r");
 printf("\n\r");
 while(true)
 {
  printf("nOS : ");
  i=scanf();
  printf("\n\r");
  if(strcmp(i,"cls")==true)
    {
     cls();
    }
  if(strcmp(i,"help")==true)
    {
     printf("nOS ver 1.0\n\r");
     printf("Accessible Commands\n\r");
     printf("help    - Shows Help\n\r");
     printf("cls     - Clears The Screen\n\r");
     printf("ver     - Shows Version Info.\n\r");
     printf("about   - Shows Info About Me.\n\r");
     printf("restart - Restarts Your System.\n\r");
     printf("exit    - Shuts Down Your System.\n\r");
     printf("\n\r");
    }
  if(strcmp(i,"ver")==true)
    {
     printf("\n\r"); 
     printf("nOS ver 1.0\n\r");
    }
  if(strcmp(i,"restart")==true)
    {
     reboot();
    }
  if(strcmp(i,"about")==true)
    {
     printf("\n\r");
     printf("About Me\n\r");
     printf("Name: Neeraj Kumar\n\r");
     printf("Email: sohalnk@yahoo.co.in\n\r");
     printf("Website: htp://www.geocities.com/sohalnk\n\r");
     printf("\n\r");
     printf("Credits\n\r");
     printf("A very special thanks to the creaters of GROOVY OS\n\r");
     printf("\n\r");
    } 
  if(strcmp(i,"exit")==true)
    {
     cls();
     printf("nOS : You Can Now Switch Off Your System");
     while(true)
     {
      ; 
     }
    } 

 } 
pause();
}
