Skip to content

Instantly share code, notes, and snippets.

@BlackVikingPro
Created June 15, 2017 05:13
Show Gist options
  • Save BlackVikingPro/8bc598f48a32d0c4c35460b383926638 to your computer and use it in GitHub Desktop.
Save BlackVikingPro/8bc598f48a32d0c4c35460b383926638 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" !- DoIGiveAFuck? ~ By: Willy Fox - @BlackVikingPro -! """
import curses
import time
if __name__ == "__main__":
stdscr = curses.initscr()
curses.noecho()
curses.cbreak()
try:
for i in range(10):
stdscr.addstr(0, 0, "Attempting To Give A Fuck...")
stdscr.addstr(1, 0, "Total progress: [{1:10}] {0}%".format(i * 10, "#" * i))
stdscr.refresh()
time.sleep(.5)
print "\nUnable To Give A Fuck.. Sorry ¯\_(ツ)_/¯"
time.sleep(10)
finally:
curses.echo()
curses.nocbreak()
curses.endwin()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment