Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleared user input for multiple functions using cls #128

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Goober333
Copy link

Fixes issue #87 for the calc, fish, list, help, and help stocks commands. Uses os.system('cls') to clear the users input from the terminal before returning the programs terminal output. These lines were added in both player.py and modules.py.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not include your .idea folder as part of the git push.

Copy link
Collaborator

@adamgulde adamgulde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using cls clears the entire screen, which does not solve this problem because it removes all the terminals. Please use set_cursor() function from screen_space to find the exact line location of the text you're trying to clear, and then simply write over the old text, possibly with empty characters or spaces. Please test your code in all the scenarios described in #87.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants