Skip to content

Conversation

@drm343
Copy link

@drm343 drm343 commented Jan 25, 2019

Must enclosed not-printable sequences in [ and ] when use shml in prompt.
Or will overwrite the current line of screen and hard to see.

Must enclosed not-printable sequences in \[ and \] when use shml in prompt.
Or will overwrite the current line of screen and hard to see.

Further reading:
* https://www.gnu.org/software/bash/manual/bashref.html#Controlling-the-Prompt
@jdorfman
Copy link
Member

@drm343 thanks for this. @jmervine and I will take a look asap

@drm343
Copy link
Author

drm343 commented Jan 27, 2019

@drm343 thanks for this. @jmervine and I will take a look asap

I found "[" and "]" will print on screen if not use in PS1.
Maybe add 2 function named "Prompt_fgcolor" and "Prompt_bgcolor" for PS1 prompt is better.

@jmervine
Copy link
Member

I’ll take a look some point this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants