Custom Command Window (Python)

by jshumaker1 in Circuits > Linux

762 Views, 2 Favorites, 0 Comments

Custom Command Window (Python)

Terminal.png

When making a custom terminal application, you must not only download python but other libraries including OS and others depending on what you want shell to do.

Things You Will Need

Pi.jpg

One raspberry pi that can run the Ubuntu Mate OS, and the dependent packages associated with the python OS library and Python itself.

The Code

python.jpg

import os

print "Name"

def command():

x = raw_input(">:")

if x == ("Command1"):

print("Test")

simulate()

def simulate():

command()

command()