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

Garbage characters displayed in prompt on Ubuntu 14.04 #454

Closed
rkeithhill opened this issue Oct 18, 2016 · 4 comments
Closed

Garbage characters displayed in prompt on Ubuntu 14.04 #454

rkeithhill opened this issue Oct 18, 2016 · 4 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@rkeithhill
Copy link
Contributor

I have the PS Core alpha 11 installed. When PowerShell starts, my prompt looks like this:
image
As soon as I type a single character l in this case, the prompt changes to:
image
The erroneous 1 displayed has nothing to do with the history id I display in my prompt. For instance, if my history was at 2, as soon as I type the 1 reappears.

After I execute the command the prompt is displayed correctly again until I start typing a new command.

@lzybkr
Copy link
Member

lzybkr commented Oct 20, 2016

Is this related to the prompt function getting invoked twice?

@rkeithhill
Copy link
Contributor Author

rkeithhill commented Oct 21, 2016

I don't know. I'll experiment with this some tomorrow when I'm back on this VM. It is interesting that the garbage glyph appears to be 001B which is the hex value of the \e char. It's still too bad <backtick>e didn't get added to PowerShell along with <backtick>uXXXX e.g. `u001b.

@rkeithhill
Copy link
Contributor Author

Yup, the prompt is getting invoked twice. Not sure if that is what is causing the garbage char.

Here is my prompt func (using a hacked version of posh-git that runs on PS Core and returns an ANSI seq string instead of writing to host):
image

@lzybkr lzybkr added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Jan 12, 2017
@lzybkr
Copy link
Member

lzybkr commented Jan 12, 2017

Most likely a dupe of #468, reopen with additional information if you disagree.

@lzybkr lzybkr closed this as completed Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants