How can I clear the Python pdb screen? -


let's write

(pdb) p dir(object) 

and, screen taken list of attributes. how can clear text while still in debug mode? importantly, don't want lose place in code.

depends on os. if you're on windows should work:

import os; os.system('cls') 

if you're on gnu/linux (i think in mac os too) should trick:

import os; os.system('clear') 

but, if use bash shell interpreter, there handy keymap: ctrl+l


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -