View Single Post
Old Sep 3rd, 2007, 8:33 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Terminal codes used to vary widely, though there were a number of standard ones. Once terminals were built to respond to escape sequences, things became much more standardized. If you can find the information behind the old ANSI.SYS, you'll probably be in tall cotton.

Otherwise, building a shell isn't really that difficult. You can build in some commands and handle others by launching appropriate executables.

Giving it the ability to pipe will be dependent upon the underlying OS, though, generally.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote