mirror of
https://github.com/markqvist/rnsh.git
synced 2024-10-01 01:15:37 -04:00
7 lines
187 B
Python
7 lines
187 B
Python
|
import os
|
||
|
import sys
|
||
|
|
||
|
for stream in [sys.stdin, sys.stdout, sys.stderr]:
|
||
|
print(f"{stream.name:8s} " + ("tty" if os.isatty(stream.fileno()) else "not tty"))
|
||
|
|
||
|
print(f"args: {sys.argv}")
|