Subversion Repositories Kolibri OS

Rev

Rev 1668 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. #define FALSE 0
  3. #define TRUE 1
  4.  
  5. #define SHELL_VERSION "0.4"
  6.  
  7. extern char     PATH[256];
  8. extern char     PARAM[256];
  9.  
  10. char            title[64];
  11. char            cur_dir[256];
  12.  
  13. /// ===========================================================
  14.  
  15. char            *ALIASES = NULL;
  16. unsigned        ALIAS_NUM = 0;
  17.  
  18. /// ===========================================================
  19.  
  20. #define CMD_HISTORY_NUM 5
  21.  
  22. char            CMD[256];
  23. char            CMD_HISTORY[CMD_HISTORY_NUM][256];
  24. char            CMD_NUM;
  25.  
  26. unsigned        CMD_POS;
  27.  
  28. /// ===========================================================
  29.  
  30. char script_sign[] = {"#SHS"};
  31.  
  32. /// ===========================================================
  33.  
  34. const NUM_OF_CMD = 19;
  35.  
  36. const char HELP_COMMANDS[][10]=
  37. {
  38. "about",
  39. "alias",
  40. "cd",
  41. "date",
  42. "echo",
  43. "exit",
  44. "free",
  45. "help",
  46. "kill",
  47. "ls",
  48. "mkdir",
  49. "more",
  50. "ps",
  51. "pwd",
  52. "reboot",
  53. "rm",
  54. "rmdir",
  55. "touch",
  56. "ver"
  57. };
  58.  
  59. const char HELP_DESC [][70]=
  60. {
  61. "  Displays information about the program\n\r",
  62. "  Allows the user view the current aliases\n\r",
  63. "  Changes directories\n\r",
  64. "  Returns the date and time\n\r",
  65. "  Echoes the data to the screen\n\r",
  66. "  Exits program\n\r",
  67. "  Displays total, free and used memory\n\r",
  68. "  Gives help\n\r",
  69. "  Stops a running process\n\r",
  70. "  Lists the files in a directory\n\r",
  71. "  Makes directory\n\r",
  72. "  Displays a data file to the screen\n\r",
  73. "  Lists the current processes running\n\r",
  74. "  Displays the name of the working directory\n\r",
  75. "  Reboots the computer\n\r",
  76. "  Removes files\n\r",
  77. "  Removes directories\n\r",
  78. "  Creates an empty file or updates the time/date stamp on a file\n\r",
  79. "  Displays version\n\r"
  80. };
  81.  
  82. /// ===========================================================
  83.