Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Weird formatting of colored prompt message #2

Closed
bilalq opened this Issue · 4 comments

2 participants

@bilalq

The prompt message seems to display strangely when a colored message is used. The cursor appears indented far to the right. When hitting backspace, the text moves back to where it should, but the cursor stays where it is. Once another key is pressed, the text goes back to it's indented location.

Both the colors and cli-color modules cause this to happen.

screen shot 2014-02-23 at 1 42 24 pm

@bilalq

I did a little digging around, and it seems the problem is in the read module that this depends on. I guess this can be marked as closed here.

@bilalq bilalq closed this
@bilalq

Actually, I may have closed this prematurely. flatiron/prompt handles this issue by monkey-patching the readline setPrompt interface: https://github.com/flatiron/prompt/blob/master/lib/prompt.js

Is that possibly a direction you guys would want to go here?

@bilalq bilalq reopened this
@satazor
Owner

I'm currently in vacation, I will look closer later. Meanwhile feel free to make a PR with the monkey patched solution!

@satazor
Owner

Closing this.

@satazor satazor closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.