Re: Getting psql to redisplay command after \e
| От | Fabien COELHO |
|---|---|
| Тема | Re: Getting psql to redisplay command after \e |
| Дата | |
| Msg-id | alpine.DEB.2.21.1911231904270.10704@lancre обсуждение исходный текст |
| Ответ на | Re: Getting psql to redisplay command after \e (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
>> I think that rl_insert_text and friends can probably only be used from >> readline callback functions. So in principle maybe you could make it >> work by having an rl_startup_hook that injects text if there is any >> to inject. There would remain the issues of (a) is it portable across >> a wide range of readline and libedit versions, (b) will the prompting >> behavior be nice, and (c) do we really want this to work fundamentally >> differently when readline is turned off? > > I thought maybe you were going to work on this right away, but since > you haven't, I went ahead and pushed what I had. There's certainly > plenty of time to reconsider if you find a better answer. Indeeed. I started to play with the startup hook, it kind of worked but not exactly as I wished, and I do not have much time available this round. -- Fabien.
В списке pgsql-hackers по дате отправления: