Getting bored with the traditional cmd
on windows, so wanted to build one myself. Any tutorial, library, etc would help.
Thanks in advance! :)
The shell in the sense of the CLI command interpretor (which are bash or cmd.exe) can be OS independant. The window holding it will have to either depend on a GUI framework (and could be more less OS independant) or directly use an special OS facility. For example on Windows executable can be tagged as GUI processes and have to provide a Windows interface or as console processes. In that latter case, the system automatically provides them with a console system object (which is erroneously called cmd windows) connected to the Stdin, Stdout and Stderr streams.
In Unix or Linux, you can find a number of terminal emulators (the xterm
family and derivatives like konsole
) that by default host the standard shell of the user but can host any other command interpretor.
The interpretor will be easy to write in Python - even if a parser like PLY could help - , and will still be easy to install in a console on terminal emulator. If you need to build a GUI to host it, you will have to use a Python GUI framework like tkinter (standard), PyQt, wxWindows, PyGTK, Kivy, etc.