Does anyone know how to create elaborate designs in the console with text, like hashtags and dashes and such? I'm trying to integrate this into my senior project for high school and wanted to wow my teacher
Asked
Active
Viewed 522 times
-4
-
2Welcome to SO! Please be specific. In particular, have a read through: [mcve]. In general, you will only find answers to specific questions, which often involves sharing some of your existing code. – jpp Feb 10 '18 at 00:54
-
1Possible duplicate of [Print in terminal with colors?](https://stackoverflow.com/questions/287871/print-in-terminal-with-colors) – bla Feb 10 '18 at 00:57
1 Answers
2
I would suggest a library for this like asciimatics, this will enable you to colour the terminal, animate it, keyboard and mouse input, it offers a lot. If you want it to be console based then this is the way to go.
If you would like to build something from scratch then you could apply something based on terminal size using the os
module. For example this would fill the first line with #
:
import os
a = os.get_terminal_size()
print( a.columns * "#")

Xantium
- 11,201
- 10
- 62
- 89