Re: Windows v readline
| От | Tom Lane | 
|---|---|
| Тема | Re: Windows v readline | 
| Дата | |
| Msg-id | 30337.1577712489@sss.pgh.pa.us обсуждение исходный текст  | 
		
| Ответ на | Re: Windows v readline (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) | 
| Ответы | 
                	
            		Re: Windows v readline
            		
            		 | 
		
| Список | pgsql-hackers | 
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2019-09-29 22:55, Andrew Dunstan wrote:
>> It would certainly be nice to have readline-enabled psql on Windows if
>> possible.
> I tried this out.  First, it doesn't build, because readline doesn't do 
> the dllimport/dllexport dance on global variables, so all references to 
> rl_* global variables in tab-complete.c fail (similar to [0]).  After 
> patching those out, it builds, but it doesn't work.
What do you mean by "patching those out" --- you removed all of
tab-complete's external variable assignments?  That would certainly
disable tab completion, at a minimum.
> It doesn't print a 
> prompt, keys don't do anything sensible.  I can enter SQL commands and 
> get results back, but the readline part doesn't do anything sensible AFAICT.
I wonder if readline was confused about the terminal type, or if it
decided that the input file was not-a-tty for some reason.
            regards, tom lane
		
	В списке pgsql-hackers по дате отправления: