Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import curses
- import time
- import os
- stdscr = curses.initscr()
- # Clear the screen
- stdscr.clear()
- # Add title to the top of the screen
- stdscr.addstr(0, 50, "This Program is Being Run From Pastebin.com",
- curses.A_STANDOUT)
- stdscr.refresh()
- # Create loading animation
- loading_animation = ["|", "/", "-", "\\"]
- for i in range(20):
- for animation in loading_animation:
- stdscr.addstr(10, 65, "Loading " + animation)
- stdscr.refresh()
- time.sleep(0.1)
- stdscr.clear()
- stdscr.addstr(
- 2, 50, "This Program is Being Run From Pastebin.com", curses.A_STANDOUT)
- stdscr.addstr(13, 55, "Follow Me on Github @Py0x11")
- stdscr.refresh()
- os.system("cls")
- os.system("pause")
- # End curses session
- curses.endwin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement