sepandhaghighi / nafas

🧘‍♂️ Breathing Gymnastics Application
MIT License
102 stars 6 forks source link

[Feature]: Clear screen #97

Open sepandhaghighi opened 1 month ago

sepandhaghighi commented 1 month ago

Describe the feature you want to add

Clear screen in reset mode

Describe your proposed solution

No response

Describe alternatives you've considered, if relevant

No response

Additional context

No response

oscarArismendi commented 4 weeks ago

Hi,

I’d like to help with this issue. Could you please provide an example or clarify when the "reset mode" is used?

Thank you!

sepandhaghighi commented 4 weeks ago

Hi @oscarArismendi

We are delighted that you are interested in contributing to this project.

Here :

https://github.com/sepandhaghighi/nafas/blob/ebcfc977d9765aefda43fdb7dafdf408c74da320/nafas/__main__.py#L34

We ask the user to enter a character to either terminate the program or restart it. In the case of a restart, we need to clear the screen. To achieve this, you can use a function like the following:

def clear_screen():
    """
    Clear screen function.

    :return: None
    """
    if sys.platform == "win32":
        os.system('cls')
    else:
        os.system('clear')

Before starting please review CONTRIBUTING.md