bsdgames worm, ported to Python and improved
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import subprocess |
|
|
|
|
|
def stty(raw=None, echo=None): |
|
args = ["stty"] |
|
|
|
if raw is not None: |
|
args.append("raw" if raw else "-raw") |
|
|
|
if echo is not None: |
|
args.append("echo" if echo else "-echo") |
|
|
|
subprocess.run(args)
|
|
|