Sometimes you need a simple serially-accessible shell for your embedded projects. It facilitates debugging, and generally makes things a whole hellova lot more friendly!
For that purpose, I use this little gem. The code is pretty self-explanatory, but it provides you with a good amount of functionality and can be cross-compiled for almost any platform.
MIT license. Share and enjoy!