noboxio / tj-python

Python library for use with Watson services on a Raspberry Pi.
http://nobox.io
5 stars 3 forks source link

Command line window #4

Open datcomputerguy opened 7 years ago

datcomputerguy commented 7 years ago

Something that could be nice is to have the ability to enter commands wether they be friendly text or literal python code into the code window while it is running the program. This way we could show the kids something like led on and the led turn on. Or we could do ledP.setColor("red") or whatever we wanted. Basically create an interactive console.

This could also combine the use of some other terminal techniques I have seen that allow for the screen to be divided into multiple "windows" so you could have the program running at the top and then have a command area below. This is advanced I know but I know people have taken the time to program some frameworks that allow us to do this.

PROMPT AREA

DEBUG/OUTPUT AREA
COMMAND ENTER AREA
STATUS BAR AT BOTTOM

This is just a thought that we can explore. The first version of adding this feature would be to just have 3 threads that output text onto a screen and then use screen to view them simultaneously and then later on it is just combining the output from the 3 different threads or processes or whatever that we end up using to do this.