Hi, After the upgrade to postgresql client 9.4.1, the revision 378500 also replaced readline with libedit. Now the color codes stopped working for me. My prompt now looks like: [1;33m11:41:22 [1;33m[1;34mgibheer[1;30m-[1;34m[local][1;30m/[1;34m~[1;33m=[0m To reproduce the problem, use the following command \set PROMPT1 '%[%033[1;33m%]%x%[%033[1;34m%]%n%[%033[1;30m%]-%[%033[1;34m%]%M%[%033[1;30m%]/%[%033[1;34m%]%~%[%033[1;33m%]%R%[%033[0m%] ' Maybe it is possible to add an option, wether to use libedit or libreadline? Thank you
Fix Summary and assign.
Hi, I'm checking this problem with some libedit peaople. The probable reason is that libesdit does not support the colour codes, it is not 100% compatible with reasdline. Problaby, we will end up reverting the change to using libedit, or libedit will resolve the problem. Palle
Hmm, I'm restructuring the client ports to just optionally replacing readline with editline(libedit), instead of making libedit default. libedit does not have all the bells and whistles of readline, and if you don't care about the license but do care about the bells and whistles, you should not suffer... :) Takes a few hours to run through poudriere and stuff... Palle
I'll see what I can do on the libedit front
A commit references this bug: Author: girgen Date: Sat Feb 7 17:05:10 UTC 2015 New revision: 378604 URL: https://svnweb.freebsd.org/changeset/ports/378604 Log: Revert the change from readline to libedit, and instead make libedit optional. PR: ports/197362 Changes: head/databases/postgresql90-client/Makefile head/databases/postgresql91-client/Makefile head/databases/postgresql91-server/Makefile head/databases/postgresql92-client/Makefile head/databases/postgresql92-server/Makefile head/databases/postgresql93-client/Makefile head/databases/postgresql94-client/Makefile
I reverted the shift from readline to libedit. Instead, I made it an option to use libedit instead of readline.
A commit references this bug: Author: girgen Date: Sat Feb 7 17:18:49 UTC 2015 New revision: 378608 URL: https://svnweb.freebsd.org/changeset/ports/378608 Log: In previous commit, "Revert the change from readline to libedit, and instead make libedit optional.", I failed to get the PORTREVISION set correctly. Fixed now. PR: ports/197362 Changes: head/databases/postgresql90-server/Makefile head/databases/postgresql94-server/Makefile
Thank you very much :) It works now