I'm currently making a terminal just for fun and to learn some python
I'm half way through making this terminal which sends commands to the OS by using commands.getcommand("...")
only problem is there doesnt really seem to be any environment there.. eg. environment variables, changing directories etc.
whats the best way to be able to send commands to the system (and grab its output) as well as having a terminal environment with environment variables that stay between commands?
hope that makes sense.
thanks.
I'm half way through making this terminal which sends commands to the OS by using commands.getcommand("...")
only problem is there doesnt really seem to be any environment there.. eg. environment variables, changing directories etc.
whats the best way to be able to send commands to the system (and grab its output) as well as having a terminal environment with environment variables that stay between commands?
hope that makes sense.
thanks.