Re: Invisible PROMPT2

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Invisible PROMPT2
Дата
Msg-id CA+hUKGJBmMLYHyBHSfuuB7Y7bewo9OLp54xz6XHZrLJYBy+gOA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Invisible PROMPT2  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Invisible PROMPT2  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Nov 18, 2019 at 1:49 PM Alvaro Herrera <alvherre@2ndquadrant.com> wrote:
> On 2019-Nov-18, Thomas Munro wrote:
> > Nice idea.  Here's one like that, that just does the counting at the
> > end and looks out for readline control codes.  It's pretty naive about
> > what "width" means though: you'll get two spaces for UTF-8 encoded é,
> > and I suppose a complete implementation would know about the half
> > width/full width thing for Chinese and Japanese etc.
>
> Hmm ... is this related to what Juan José posted at
> https://postgr.es/m/CAC+AXB28ADgwdNRA=aAoWDYPqO1DZR+5NTO8iXGSsFrXyVpqYQ@mail.gmail.com
> ?  That's backend code of course, though.

Yeah.  Maybe pg_wcswidth() would be OK though, and it's available in
psql, though I guess you'd have to make a copy with the escaped bits
stripped out.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Invisible PROMPT2
Следующее
От: David Fetter
Дата:
Сообщение: Re: Reverse collations (initially for making keyset pagination covermore cases)