Skip to content

Instantly share code, notes, and snippets.

@VideoCarp
Last active May 16, 2022 11:15
Show Gist options
  • Save VideoCarp/b4148024c0b8e2d8f53953e766a2df5e to your computer and use it in GitHub Desktop.
Save VideoCarp/b4148024c0b8e2d8f53953e766a2df5e to your computer and use it in GitHub Desktop.
My python terminal module.

Progress bar. Code to run:

from terminal_easy import *
from asyncio import sleep as async_sleep
async def main():
    for _ in range(100):
        update_progress(1)
        await async_sleep(0.01)

progress(
    task=main,
    loadmessage=f'Loading...\n{colours["red"]}{text["bold"]}',
    afterwards=f'{reset}\n{cursor["show"]}'
)
terminal_easy.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment