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

Update aliases judgment for winpty #553

Closed
wants to merge 1 commit into from
Closed

Update aliases judgment for winpty #553

wants to merge 1 commit into from

Conversation

250h
Copy link

@250h 250h commented Apr 25, 2024

Mintty can change their type of $TERM easily in settings, it's better use disable_pcon to get winpty aliases.

Signed-off-by: E. H [email protected]

only use aliases when disable pseudo console instead of case $TERM

Signed-off-by: E. H. <[email protected]>
@dscho
Copy link
Member

dscho commented Apr 25, 2024

Signed-off-by: E. H [email protected]

Please sign off the commit, not the PR: Add your sign-off to the commit message. But if you use a pseudonym and a non-working email address, then it is not actually a sign-off.

Comment on lines -8 to +9
case "$TERM" in
xterm*)
case "$MSYS" in
*disable_pcon*)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trouble with this is: by default MSYS is unset, and Pseudo Console support is still disabled. The new check misses that rather common scenario, and therefore will break them.

I did not find a way to reliably determine whether Pseudo Console support is enabled. We may need to patch the MSYS2 runtime to be able to tell, first.

@250h 250h closed this Apr 27, 2024
@250h 250h deleted the aliases-fix branch April 27, 2024 09:10
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

Successfully merging this pull request may close these issues.

2 participants