On 2020-10-17 17:05, Eryk Sun wrote:
CMD's CLS is implemented with three API calls:
GetConsoleScreenBufferInfo to get the screen-buffer dimensions and
default text attributes, ScrollConsoleScreenBufferW to shift the
buffer out, and SetConsoleCursorPosition to move the cursor to (0,0).


Would you happen to have a link to some Python/ctypes code to implement this? It would be helpful.

-Mike
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/6I6RQNJOXOD6OYHC7XZRJCPUIB55ICAS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to