Hello everyone. I'm somewhat new to python and want to create an ASCII animation, how would I do a clear in the code itself to create frames. Thanks in advance, Jonah Lubin.
Hello everyone. I'm somewhat new to python and want to create an ASCII animation, how would I do a clear in the code itself to create frames. Thanks in advance, Jonah Lubin.
You cold print a bunch of lines or you could look into a more advanced library such as ncurses.
I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
Freedom is measured in Stallmans.
Projects: gEcrit
Though with an ASCII movie there is already so many lies of code it would be more streamlined if i just used a single line clear command.
ncurses is probably what you're looking for.
There are 10 different kinds of people:
Those who understand binary numbers
Those who don't
Free/open-source game development kit: http://openblox.sourceforge.net
or you could use the os module to run the clear command, ncurses is better but this still works
Code:import os os.system('clear')
Last edited by Bodsda; December 6th, 2011 at 01:03 PM.
computer-howto
Linux is not windows
Fluxbox & Flux menu how to
Programming is an art. Learn it, Live it, Love it!
Ya I'm kinda new to python so NCurses is a bit out of my reach but the os clear looks good
Bookmarks