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

Colors messed up after any 'fuck' command #772

Closed
hugo-vrijswijk opened this issue Jan 11, 2018 · 1 comment
Closed

Colors messed up after any 'fuck' command #772

hugo-vrijswijk opened this issue Jan 11, 2018 · 1 comment
Labels

Comments

@hugo-vrijswijk
Copy link

hugo-vrijswijk commented Jan 11, 2018

The output of thefuck --version:

The Fuck 3.25 using Python 3.6.4

Your shell and its version:

PowerShell v5.1.16299.98

Your system:

Windows 10 (1709)

How to reproduce the bug:

Using any fuck command in PowerShell messes up the colors. See image. Calling thefuck is fine
image

These are my debug settings:

DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': [],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': WindowsPath('C:/Users/hugod/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}

And I have set $env:PYTHONIOENCODING = "utf-8" in my $PROFILE

Happens in both ConEmu, Windows console host and in Administrator sessions of both. Hope this is enough information for a start

@MattKotsenas
Copy link
Contributor

MattKotsenas commented Feb 1, 2018

I can repro this as well.

I'd be interested in taking a look at this, since I originally added PowerShell support (and created this mess ;)), but I'm not sure where the tests for this should go. Can someone suggest where to get started? It looks like test_ui.py is the right place, but I see in there colors are explicitly turned off. Would it be possible / a good idea to turn them on?

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

No branches or pull requests

3 participants