Skip to content

Fix bug about Controlling the Prompt. - #51

Open
drm343 wants to merge 1 commit into
odb:masterfrom
drm343:master
Open

Fix bug about Controlling the Prompt.#51
drm343 wants to merge 1 commit into
odb:masterfrom
drm343:master

Conversation

@drm343

@drm343 drm343 commented Jan 25, 2019

Copy link
Copy Markdown

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
Copy Markdown
Member

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

@drm343

drm343 commented Jan 27, 2019

Copy link
Copy Markdown
Author

@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
Copy Markdown
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