소스 검색

Sample "mystic" to test with.

copy mystic.py to mySTIC and
local test away.
Steve Thielemann 5 년 전
부모
커밋
a9e00446bb
1개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  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")
+