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

Colorized Prompts using Write-Host don't work as expected #45

Closed
jhclark opened this issue Oct 17, 2013 · 2 comments
Closed

Colorized Prompts using Write-Host don't work as expected #45

jhclark opened this issue Oct 17, 2013 · 2 comments

Comments

@jhclark
Copy link

jhclark commented Oct 17, 2013

When using Write-Host to colorize the prompt (the only known method of colorizing the prompt in powershell), the prompt gets clobbered. This makes PSReadLine less able to emulate the goodness of bash and friends.

Possible hack: Allow a variable called $PromptLength (which the Prompt function is required to update) to communicate to PSReadline where the cursor position should be.

More principled fixes may also be possible.

@lzybkr
Copy link
Member

lzybkr commented Oct 17, 2013

My prompt uses many colors and multiple lines w/o any problems.

You'll have to share your prompt function and repro steps (which I'm guessing is just to use bash style completion where the completion is ambiguous, but if not, let me know.)

@jhclark
Copy link
Author

jhclark commented Oct 17, 2013

Issue was with my box. I had a previous version of PSReadLine installed, which had this issue. psget silently kept the old version.

After removing the old version of PSReadLine and installing the current version this issue was resolved.

Thanks for the quick response! And nice package. :)

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

2 participants