Hey blog readers! we have a new Facebook page! Check it out at http://on.fb.me/U9s2Ld
namespace TOSShould look say namespace and then the name of your project.
Moving on to lines 20-31, we see the method Run(). Cosmos will loop this until your program quits (you shutting down VMware Player). So there is nothing new on lines 22 through 23, but 24 is definitely new. This is called an "if" statement. We are saying "if this is true, do everything inside of the brackets below". In this case, we are saying if the variable cmd equals "echo", then run Console.WriteLine("echo echo echo...");. Beneath it we have line 28. This is called an else statement. This only works if you put it directly beneath an "if" or an "else if" statement. This is saying "if the above if statement if false, do this". In this case, if cmd does NOT equal "echo", do Console.WriteLine("ERROR: unknown command");.
Well congratulations! You have created an interactive shell! In the next part, we can start working with some graphics. We can start with a mouse and work our way towards making a crude GUI (don't worry if you don't know what this means). If you ran into any trouble, feel free to leave a comment below and any of the authors will help you out. Remember that you don't need a google account to comment, just select "Anonymous". Just be warned that you will not receive emails when someone leaves an answer to your question. If you see any errors or improvements, feel free to notify us in the comments and we will make the appropriate changes. When you are ready, go to part 3 here -> http://allstuffnerdy.blogspot.com/2014/06/cosmos-part-3-mouse-support.html. Have Fun!