built in to clear terminal
Sorry -- I can't find the thread, but there was a discussion on this list about whether there should be a built in for clearing the terminal screen. I'm was on the fence about it -- but one more data point: One of my beginning Python students just submitted code with this in it: def clear_screen(): ''' Function: clear_screen() (Windows/Unix) Input: None Process: Clear Screen Output: None ''' if (opSys == 'Windows'): os.system('cls') else: os.system('clear') return None Which makes me think -- yes, it would be nice to have that available in the standard lib somewhere. -CHB -- Christopher Barker, PhD Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
participants (13)
-
2QdxY4RzWzUUiLuE@potatochowder.com
-
Barry Scott
-
Ben Rudiak-Gould
-
Cameron Simpson
-
Chris Angelico
-
Christopher Barker
-
David Mertz
-
Eryk Sun
-
Felipe Rodrigues
-
Guido van Rossum
-
Mike Miller
-
Stephen J. Turnbull
-
Steven D'Aprano