January 6th, 2013, 10:53 PM
Running Python in Terminal (UNIX)
Hello! I am very new to Python, and have had zero experience in any other programing language. I am currently working on a text based game which I would like to run on Terminal on my Mac.
I have a few issues I would like your wise minds to answer:
1) Whenever I want to input a string in Terminal, I have to input quotation marks so it recognizes its a string. Anyway to get rid of this need of quotes?
2) I want a certain theme for the game environment. I want the program thats running the script to have a sort of Matrix theme with the black window and green font (I only chose Terminal because of the theme). Is there anyway to somehow download a theme, or change the color settings of the program? I have WingsIDE and IDLE.
Would appreciate the help. Many thanks!
January 7th, 2013, 01:57 AM
You probably mean input() in Python 2.x. Either use Python 3 or raw_input() in Python 2.
Originally Posted by theduke007
I have no idea about any “themes”, but I guess you can control the colours using a suitable module (curses? I don’t know).
My armada: openSUSE 13.1 (home desktop, home laptop), Crunchbang Linux 11 (mini laptop, work laptop), Android 4.2.1 (tablet)
January 7th, 2013, 09:57 AM
Solution for both pythons
[/code] are essential for python code and Makefiles!