Draw on terminal using Unicode block elements
Created as an exercise to learn Python ๐ช
You only need the csblocks.py file.
from csblocks import Grid
# Create an instance
grid = Grid()
# Draw a block at (4, 2) (row 4, column 2)
grid.set(4, 2)
# Display
print grid
To run the example:
python example.py
Or with virtualenv:
. bin/activate
python example.py
# turn off
deactivate
For details, see the example.py file.