The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Problem clearing the console in Python
03-06-2023, 05:53 PM
Post: #1
Problem clearing the console in Python
Hi everyone, I recently bought an HP Prime and I was very excited about programming with Python, so I started a very basic program. The problem came when I wanted to clear the output of the monitor, and none of the solutions that I knew or found worked on the HP Prime.
I want to clear the monitor during the execution of the program, not manually using the clear button on the calculator. I tried sending escape sequences to clear the console, but it didn't work. Also, I can't use the 'os.system('cls')' module apparently because it's not in this version of MicroPython.
Does anyone have a solution for this? Any piece of code that can do the job?

Sorry about my English, it's not my native language :(
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Problem clearing the console in Python - Monqi - 03-06-2023 05:53 PM



User(s) browsing this thread: 3 Guest(s)