Browse Source

Sample "mystic" to test with.

copy mystic.py to mySTIC and
local test away.
Steve Thielemann 4 years ago
parent
commit
a9e00446bb
1 changed files with 18 additions and 0 deletions
  1. 18 0
      mystic.py

+ 18 - 0
mystic.py

@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+END="\r\n"
+
+def prnt(str):
+    print(str, end=END)
+
+prnt("\x1b[2J\x1b[1;1H\x1b[0mWelcome to testing 1.0");
+prnt("This is using python.  HA!");
+prnt("Hello there!\x1b[0;1m")
+prnt("Sorry, we don't do terminal echo here.")
+
+x = input("Your name? ")
+
+prnt("\x1b[2J\x1b[1;1H\x1b[1;36mWe are now this color.");
+prnt("Hello there, {0}.".format(x))
+prnt("\x1b[0m")
+