My program is written in Python 2.7 and I want to do a dynamic update. The output is in table-view and has hundreds of characters. A really good answer I found here, however, more than 100 characters it crushed (as promised in the article). Moreover, I don't know how many lines the table has, it changes dynamically. Furthermore, I don't want to use curses, because I want the output to be inline in the console like running 'regular' command
Output example:
+------+--------------+-------------+
| Type | IP Address | Status |
+------+--------------+-------------+
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
+------+--------------+-------------+
I'm trying to avoid:
+------+--------------+-------------+
| Type | IP Address | Status |
+------+--------------+-------------+
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
+------+--------------+-------------+
+------+--------------+-------------+
| Type | IP Address | Status |
+------+--------------+-------------+
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
+------+--------------+-------------+
+------+--------------+-------------+
| Type | IP Address | Status |
+------+--------------+-------------+
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| aa | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
| cccc | 10.11.10.10 | in Progress |
| bb | 10.11.10.10 | in Progress |
+------+--------------+-------------+