Rev 959 | Rev 3245 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 959 | Rev 1647 | ||
---|---|---|---|
Line 102... | Line 102... | ||
102 | 102 | ||
Line 103... | Line 103... | ||
103 | void kol_main() |
103 | void kol_main() |
104 | { |
104 | { |
Line -... | Line 105... | ||
- | 105 | ||
- | 106 | NUM_OF_CMD = sizeof(COMMANDS)/sizeof(COMMANDS[0]); |
|
105 | 107 | ||
106 | strcpy(title, "SHELL "); |
108 | strcpy(title, "SHELL "); |
107 | strcat(title, SHELL_VERSION); |
109 | strcat(title, SHELL_VERSION); |
Line 108... | Line 110... | ||
108 | CONSOLE_INIT(title); |
110 | CONSOLE_INIT(title); |
109 | 111 | ||
Line 110... | Line 112... | ||
110 | strcpy(cur_dir, PATH); |
112 | strcpy(cur_dir, PATH); |
Line -... | Line 113... | ||
- | 113 | dir_truncate(cur_dir); |
|
- | 114 | ||
111 | dir_truncate(cur_dir); |
115 | con_set_cursor_height(con_get_font_height()-1); |
112 | 116 | ||
113 | con_set_cursor_height(con_get_font_height()-1); |
117 | ALIASES = malloc(128*1024); |
114 | 118 |