Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help regarding weird display when 2>&1 and using tee. #536

Open
ghost opened this issue Apr 17, 2023 · 1 comment
Open

Help regarding weird display when 2>&1 and using tee. #536

ghost opened this issue Apr 17, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 17, 2023

I know this isn't the right place to ask but can somebody help me out in this question regarding ptpython repl: https://unix.stackexchange.com/questions/743134/how-do-i-fix-screen-when-i-am-inside-screen-running-ptpython-and-its-messed-up-d

Letme explain the steps to reproduce the problem.

Ptpython displaying accurately:

Reproducing

screen -S test -d -m bash -c 'python3.12 -c "from ptpython.repl import embed; embed(globals(), locals())"'
screen -x test

Output

image

Ptpython not display accurately:

Reproducing

echo "python3.12 -c 'from ptpython.repl import embed; embed(globals(), locals())'" > test.sh
screen -S test -d -m bash -c 'bash test.sh 2>&1 | tee log'
screen -x test

Output

image

@ghost
Copy link
Author

ghost commented Apr 17, 2023

Expected response

image
Something like this. Its possibly a bug in ptpython as per discussion in question above. Both cases have weird display the latter one is much more problematic and I want that to be fixed. Former isnt neccessary to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants