I am creating a login panel in the terminal in python and I want to dynamically change icon before input i.e whenever the user fills the input the icon changes.
Example:
F:\command_line>python main.py
? username: # initially there is a question mark.
✓ username: # If the user fills the username the icon changes to ✓
I tried:
default = '?'
onChange = '✓'
inp = input(default + " " + name + ":")
# I can't figure out how I can change it
Is it possible to do this? If so, How can I achieve it?