Current-Users archive

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

Re: Colour support in editline

On Fri, May 06, 2016 at 03:09:07AM +0000, Christos Zoulas wrote:
> Yes, there is interest, but it should be done correctly. Currently this
> is difficult because the marker hack to indicate the beginning and the
> end of an escape sequence so that it is not counted as a cursor position
> does not work properly. Instead it should be replaced with something that
> works (perhaps an adjacent data structure that holds pointers to ANSI
> escape sequences or NULL for each character position in the line. That is
> memory expensive, but easy to implement.

Perhaps have a look at the libcurses handling of non-spacing characters,
that tried to balance memory consumption against implementation

Brett Lymn
Let go, or be dragged - Zen proverb.

Home | Main Index | Thread Index | Old Index