Re: BUG #11028: psql doesn't use 0x01 and 0x02 to inform readline of non-printable PROMPT1 chars
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #11028: psql doesn't use 0x01 and 0x02 to inform readline of non-printable PROMPT1 chars |
| Дата | |
| Msg-id | 23902.1406142767@sss.pgh.pa.us обсуждение |
| Ответ на | BUG #11028: psql doesn't use 0x01 and 0x02 to inform readline of non-printable PROMPT1 chars (fleminra@gmail.com) |
| Ответы |
Re: BUG #11028: psql doesn't use 0x01 and 0x02 to inform
readline of non-printable PROMPT1 chars
|
| Список | pgsql-bugs |
fleminra@gmail.com writes: > Basically, the colorized prompt suggested in > http://www.postgresql.org/docs/9.3/static/app-psql.html#APP-PSQL-PROMPTING > : > testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# ' > results in strange readline behavior. In that prompt, "%[" should be > preceded by "%001" and "%]" should be followed by "%002". Actually, %[ is supposed to expand to \001 and %] is supposed to expand to \002. The example seems to work as given for me. Could you be more specific about what's going wrong for you? Also, are you sure you are really using GNU readline, and not something else like libedit? regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера