poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatted output in poke with libtextstyle


From: Bruno Haible
Subject: Re: Formatted output in poke with libtextstyle
Date: Sun, 13 Oct 2019 18:12:10 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-165-generic; KDE/5.18.0; x86_64; ; )

Hi José,

> I will be committing something based in the work below soon.
> Please take a look.  Feedback is much welcome :)
> 
> This patch adds support for libtextsyle[1] to poke.

Your patch uses libtextstyle as it was intended. I'm glad the documentation
was sufficient (except for the 'style_file_name' rvalue).

> - libreadline expects the prompt to be passed to readline("..."), and
>   relies on the lenght of the prompt in order to calculate certain
>   things, like where the cursor should stop when you press C-a, for
>   example.

Readline does not parse the prompt string according to any standard.
Rather it assumes that parts of the prompt string that have no effect on
the column position are surrounded by \001 ... \002. See [1].

Bruno

[1] 
https://stackoverflow.com/questions/9468435/how-to-fix-column-calculation-in-python-readline-if-using-color-prompt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]