Samuel Sloniker
3 years ago
2 changed files with 18 additions and 5 deletions
@ -0,0 +1,12 @@
|
||||
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) |
Loading…
Reference in new issue