Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(chr(27) + '[2j')
- print('\033c')
- print('\x1bc')
- print ("SResource 3.1. Built By William Ingebrigtsen.")
- print ("Type Help for list of commands.")
- import platform
- import codecs
- import time
- from random import randrange
- import urllib2
- while True:
- x = input("SR: ")
- if x == "help":
- print (" ")
- print ("SResource Help Page 1/1.")
- print (" ")
- print ("clear: Clear interpreter.")
- print (" ")
- print ("exit: exit the console")
- print (" ")
- print ("calc: usage: [NUMBER] Enter [NUMBER]")
- print (" ")
- print ("rnum: generates a random number from 1 to 50")
- print (" ")
- print ("ver -d: SResource Build date")
- print (" ")
- print ("ver: SResource Build Information")
- print (" ")
- print ("color -#: Turns text into selected color for 3 lines. Usage: color -b")
- print ("Colors available: Blue, Green. More wil be added soon.")
- print (" ")
- print ("cc: Show Contact information.")
- print (" ")
- print ("echo: Echo User input.")
- elif x == "color -b":
- print("\033[1;34;40m Changed To Bright Blue \n")
- elif x == "clear":
- print(chr(27) + '[2j')
- print('\033c')
- print('\x1bc')
- elif x == "exit":
- exit()
- elif x == "ver":
- print ("SResource 3.1 Developer Build Built By William Ingebrigtsen.")
- print ("SResource By Skotoma, https://skotoma.com/py3/s.com")
- elif x == "ver -d":
- print ("Last Update Date: Monday, September 2, 2019 18:37 (CEST)")
- elif x == "color -g":
- print("\033[1;32;40m Changed To Bright Green \n")
- print ("To reset color type: clear")
- elif x == "cc":
- list1 = ["https://twitter.com/WilliamIngebri1", "https://github.com/W1ll1am0004/"]
- print(list1)
- elif x == "calc":
- num1 = input("SR:")
- num2 = input("SR:")
- result = int(num1) + int(num2)
- print(result)
- elif x == "rnum":
- print(randrange(50))
- elif x == "echo":
- inp = input()
- print(inp)
- elif x == "get":
- else:
- print("SR: error: unknown command")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement