bash - psqlrc color modification resulting in funny line behavior -




trying edit ~/.psqlrc prompt1:

'\set prompt1 '%m [%n@%/] %# '

to have color:

\set prompt1 '%[%033[1;32m%]%m [%n@%/] %# '

any time include color formatting, lines screwy. example, when recall last query in psql , go delete part of statement, part of lines disappears, blinking cursor ends on line above text, still deletes text doesnt match up.

the customized prompt without color behaves expected. else encounter this?

i experienced in bash customization process couldnt escaping work pscqlrc.

https://apple.stackexchange.com/questions/37001/strange-behavior-in-terminal-with-custom-bash-profile

my environment:
os: macos 10.12.6
psql server version: 8.0.2
psql client version: 9.6.3





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -