// Read In Command Line\r
do {\r
read(_stdin, 1, &ch); // Read Character from stdin (read is a blocking call)\r
- // Ignore control characters\r
+ // Control characters\r
if(ch == '\x1B') {\r
read(_stdin, 1, &ch); // Read control character\r
switch(ch)\r
write(_stdout, 1, &ch);\r
continue;\r
}\r
+ // Tab\r
+ if(ch == '\t') {\r
+ //TODO: Implement Tab-Completion\r
+ //Currently just ignore tabs\r
+ continue;\r
+ }\r
+ \r
// Expand Buffer\r
if(len > space) {\r
space += 256;\r
// Check if file opened\r
if(dp == -1)\r
{\r
- //printf("Unable to open directory `%s', File cannot be found\n", tmpPath);\r
- write(_stdout, 27, "Unable to open directory `");\r
- write(_stdout, strlen(tmpPath)+1, tmpPath);\r
- write(_stdout, 25, "', File cannot be found\n");\r
+ printf("Unable to open directory `%s', File cannot be found\n", tmpPath);\r
return;\r
}\r
// Get File Stats\r