Skip to content

WilliamMarci/Simple-Terminal-UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Terminal-UI

Simply make your own Terminal UI in Python!

Main Function

Text

the TypeRender can automatic render the form text to TUI display:

Functions:

  • Pure text
  • Basic Math render with Unicode (Plan)
  • HUGE text (Plan)
┌─Introduction───────────────┐
│This is a demo of terminal U│
│I.                          │
│I will show you how to use i│
│t.                          │
│Or I can use the temp to sho│
│w you. using name of temp.  │
│                            │
│                            │
└────────────────────────────┘

Progress Bar

the class ProgressBarH can display the progress bar it can update by method write

══════════════════════════════
 Name1:  ██████▌        50.0% 
                              
 Example:██████▌        50.0% 
══════════════════════════════

Scatter

the class Scatter can draw a scatter figuer

┌─Chart──────────────────────────────────────────┐
│                Scatter Example                 │
│ylabels                                         │
│    1.0┏━━━━━┯━━+━┯━━━━┯━━━━┯━━━━┯━━━━┯┓        │
│       ┃     ++++++    ┆    ┆    ┆    ┆┃        │
│       ┃    ++    ++   ┆    ┆    ┆    ┆┃        │
│       ┃   + ┆    ┆++  ┆    ┆    ┆    ┆┃        │
│    0.5┠┄┄++┄┆┄┄┄┄┆┄++┄┆┄┄┄┄┆┄┄┄┄┆┄┄┄┄┆┨        │
│       ┃ ++  ┆    ┆  ++┆    ┆    ┆    ┆┃        │
│       ┃ +   ┆    ┆   +┆    ┆    ┆    ┆┃        │
│       ┃+    ┆    ┆    +    ┆    ┆    ┆┃        │
│      0++┄┄┄┄┆┄┄┄┄┆┄┄┄┄++┄┄┄┆┄┄┄┄┆┄┄┄┄┆+        │
│       ┃     ┆    ┆    ┆+   ┆    ┆    ┆+        │
│       ┃     ┆    ┆    ┆ +  ┆    ┆    +┃        │
│       ┃     ┆    ┆    ┆ ++ ┆    ┆   ++┃        │
│   -0.5┠┄┄┄┄┄┆┄┄┄┄┆┄┄┄┄┆┄┄++┆┄┄┄┄┆┄┄++┆┨        │
│       ┃     ┆    ┆    ┆   ++    ┆  + ┆┃        │
│       ┃     ┆    ┆    ┆    ++   ┆++  ┆┃        │
│   -1.0┗━━━━━┷━━━━┷━━━━┷━━━━┷++++++━━━┷┛ xlabel │
│       0     1    2    3    4    5    66.28     │
└────────────────────────────────────────────────┘

Image

class Image can draw a picture in terminal

Type I: 1 char 2 pixels

┌─Image────────────────────────────────────────────────────────────────────────┐
│A CUTE Neko Girl                              ██      ▀  █ ██████▀       █████│
│80x51██████████                        ▄   ▄  ███      ▄   ██████        █████│
│██████████████▀                       ▄▀  ▄█  ███▄     ▀   ███ █▄        █████│
│██████████████                       ▄█   ██  ████         ███▄▀█        █████│
│█████████████▀ █            █       ▄██  ▄██▄ ████▄        ▀███ █▄      ██████│
│█████████████ ██           █     ▄  ██▀  ████ █████         ███ █       ██████│
│████████████▀ ▀           ▀▀     ▀▄███  ▄████ ▄████         ███        ▄██████│
│████████████           █▀         ████  ██▄      ▀█         ██▀   ▄   ▄██████ │
│██████████▀         █    ▄█▀     ██████████  ▄      ▀       ██  ▄▀▀▀   ███▀  ▀│
│█████▀███▀               ██      ████████████         ▄▄     █▄█    █  █▀     │
│█████ ▀█▀   ▄▀           ██  ▄▄  ███████████▀       █  ▀     █▀               │
│██████ ▀  ▄█▀  ▄▄███▄   ███▄▄▄▄▄████████████   ▄    █▀       ▀      ▄         │
│██████   ▄█▄█████████   █████████████████████▄    ▄██              ▄▀         │
│███  ▀   ██████████▀██▄▄████████████████████████▄██▀▄          ▄▄▀▀         ▄█│
│██      ███████████  ██ █████████  ███████████████▄█▀       ▄      ▄█      ███│
│█▀      ████████ ██  ▄  ▄▀██████████▄ ███████████▄█▀         ▄    ███▄    ████│
│██▀▀   ▄██ ██▀██ █ ██ █ ██▄▀██████▀██▄█████████████          ▀     ██▀   ▄████│
│▀     ▄██  ▄▄ ▀▀ ▀ ▀▄ ▄█████▄█▀█████████████████▀▀██              █▀▀     ████│
│▄▄█ ████  ▄▄█ ▄▄██▄▄███████████▄█▀████████▀▀▀ ▄▄██▀██████▄▄▄  ▄           ████│
│███ ▀██  ███ ████▀████████████████▄█▀▀▀ ▄ ▄▄  ▀█▀██   ▀▄████▄▄█▄▄ ▄        ▀▀█│
│███▀██▄ ▀██  ██████▀▀█████████████████  ███     ▄█▀  ▄████████▄██ █▄          │
│███ █████▄ ▀ ▀████▀ ▄████▀████████████▄  ██▀  ▄█▀ ▀█▀█████████████▄▄█         │
│███  █▀███▀▀     ▀ ▀█████ ██▀███████▀▀█     ▄████    ▀█ ▀▀▀███▀███████▄       │
│███  ███▄      █▄   █████▀██ ▀█▀▀▀         ▀▀██████▀█ ▀ █▄    █████████▄      │
│████  █▀        █    █▄ ▀ ▀▀ ▄██▄▄▄           ▀████   ▀█▄▀ ▀ ▄▄██▄███████     │
└──────────────────────────────────────────────────────────────────────────────┘

Different Edge

Develop

Terminal Enviorment

TerminalEnv

UI Element

Alt text

About

Simply make your own Terminal UI in Python!

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages