mystic.py 382 B

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