简体   繁体   中英

mask terminal output with Asterisk, but still be able to copy and paste the original value?

I have been searching for quite some time, trying to find how to mask terminal OUTPUT.

example: print(password) terminal:


but still be able to copy and paste the password value.

There doesn't seem to be an answer to this, i have asked around :(

I worked around this problem. the goal was to be able to put the password in the clipboard. so i used pyperclip to do it :)

hope it helps someone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM