Every line of 'how to clear screen in python 3.7 shell' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
29 def clear_screen(): 30 if os.name == "nt": 31 os.system("cls") 32 else: 33 sys.stdout.write("\x1b[2J\x1b[H")
26 def clear_screen(stdscr): 27 stdscr.clear() 28 stdscr.refresh()
432 def clear_screen(self, e): # (C-l) 433 """Clear the screen and redraw the current line, leaving the current 434 line at the top of the screen.""" 435 self.console.page() 436 self.finalize()
84 def clear_screen(_input=sys.stdin, _output=sys.stdout): 85 """Clear terminal screen.""" 86 87 if not _output.isatty(): 88 return 89 90 cmd = 'cls' if os.name == 'nt' else 'clear' 91 subprocess.call(cmd, shell=True, stdin=_input, stdout=_output, stderr=_output)
43 def clearScreen(): 44 if not _Stdscr: 45 _initCurses() 46 47 _Stdscr.clear()
160 def clear(self): # From kb q99261 161 rp = COORD() 162 wr = DWORD() 163 csbi = CONSOLE_SCREEN_BUFFER_INFO() 164 GetConsoleScreenBufferInfo(self.stdout_handle, byref(csbi)) 165 sx = csbi.dwSize.X * csbi.dwSize.Y 166 167 FillConsoleOutputCharacter(self.stdout_handle, 32, 168 sx, rp, byref(wr)) 169 FillConsoleOutputAttribute(self.stdout_handle, csbi.wAttributes, 170 sx, rp, byref(wr))
300 def clear(self): 301 buffer = self.textView.get_buffer() 302 buffer.delete(*buffer.get_bounds())