We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18143ff commit 93422feCopy full SHA for 93422fe
callias.xsh
@@ -6,7 +6,11 @@ from xonsh.built_ins import XSH
6
7
8
def _print_to_tty(message):
9
- """Print message directly to TTY."""
+ """
10
+ Print message directly to TTY.
11
+ If you will try to put this function into the python file and run in bash `python file.py > /tmp/output`
12
+ you will have "Inappropriate ioctl for device" so this means that redirecting stdout disable TTY.
13
14
try:
15
tty_name = os.ttyname(sys.stdout.fileno())
16
with open(tty_name, 'w') as tty:
0 commit comments