mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

### Motivation There is an edge case that we're using mostly in integration tests from the beginning of the world: `echo 'echo 1' | xonsh -i` and it's not working with `TERM=dumb` because dumb is readline. So in this case we need to force using prompt_toolkit to avoid hanging. Closes #5462 #5517 ### Before These all produces hanging because reading stdin is not implemented in readline backend: ```xsh echo whoami | TERM=dumb xonsh -i --no-rc # dumb is readline in fact # or the same echo whoami | xonsh -st dumb -i # dumb is readline in fact # or the same echo whoami | xonsh -st readline -i ``` ### After Switching to prompt_toolkit in these cases. ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** --------- Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
23 lines
262 B
ReStructuredText
23 lines
262 B
ReStructuredText
**Added:**
|
|
|
|
* <news item>
|
|
|
|
**Changed:**
|
|
|
|
* prompt: Switching to prompt_toolkit in edge case of sending stdin to interactive mode (#5462 #5517).
|
|
|
|
**Deprecated:**
|
|
|
|
* <news item>
|
|
|
|
**Removed:**
|
|
|
|
* <news item>
|
|
|
|
**Fixed:**
|
|
|
|
* <news item>
|
|
|
|
**Security:**
|
|
|
|
* <news item>
|