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

Output of cargo compete open is cleared in Windows Terminal #163

Open
estshorter opened this issue Sep 18, 2021 · 1 comment
Open

Output of cargo compete open is cleared in Windows Terminal #163

estshorter opened this issue Sep 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@estshorter
Copy link

estshorter commented Sep 18, 2021

It seems that the terminal is cleared after printing message when using Windows Terminal.

example

How to reproduce

cargo new practice  # platform=atcoder
cd practice
cargo compete open

Note:
This works flawlessly in a terminal of VS Code.

Expected output:

$ cargo compete open    
     Opening https://atcoder.jp/contests/practice/tasks/practice_1
     Opening https://atcoder.jp/contests/practice/tasks/practice_2

Environment

OS: Ubuntu 20.04.3 on Windows10 21H1 (WSL2)
Windows Terminal: 1.10.2383.0
cargo-compete: 0.9.0

@qryxip qryxip added the bug Something isn't working label Sep 19, 2021
@estshorter
Copy link
Author

estshorter commented Sep 19, 2021

P.S.
I haven't checked detail yet, but echo 65001 > ~/.config/wslu/oemcp solved this issue.
It seems that changing the encoding causes a terminal reset.
Ref:
wslutilities/wslu#199

opener::open(url.as_str())?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants