Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code authored Jul 8, 2024
1 parent a4bdcb0 commit 79efb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ But if you use it for getting the data from remote host you would like to captur
There are three workarounds:
```xsh
!(xthread ssh host -T "echo 1") # switch to thread - xonsh >= 0.17.0
!(xthread ssh host -T "echo 1") # switch to thread (xonsh >= 0.17.0), `@thread` in the future
#CommandPipeline(returncode=0, output='1\n')
!(echo 123 | head) # stream to captured
Expand All @@ -1407,7 +1407,7 @@ There are three workarounds:
If you run a console tool and get a frozen terminal (Ctrl+c, Ctrl+d is not working), this can be that the tool was interpreted as a threaded and capturable program but the tool actually has interactive elements that expect input from the user. There are bunch of workarounds:
```xsh
xunthread ./tool.sh
xunthread ./tool.sh # `@unthread` in the future
with ${...}.swap(THREAD_SUBPROCS=False):
./tool.sh
Expand Down

0 comments on commit 79efb44

Please sign in to comment.