DtTerm: fix formatted text in history buffer
authorStuart Brady <sdb@zubnet.me.uk>
Tue, 5 May 2015 08:53:07 +0000 (09:53 +0100)
committerJon Trulson <jon@radscan.com>
Tue, 5 May 2015 22:47:05 +0000 (16:47 -0600)
commit0306c7c6f2129397d8671ace31fd29cfea2a6739
treeda7dc2a1abb357dec6037d408db6fe759416c44f
parent51afe76f078fafa30aa6a71ffb5da3c14a7a456b
DtTerm: fix formatted text in history buffer

Formatted text currently gets corrupted by DtTerm when copied into its
history buffer.

As soon as a line of text is copied into the history, the text of each
segment of formatted text is altered so that it contains the text from
the start of the line.  For example:

    echo -e '\e[1mbold\e[m \e[4munderlined\e[m'

When the text has scrolled off the screen, scrolling back to it reveals:

    boldbbold under

This is fixed by adding the calls to _DtTermPrimBufferGetCharacterPointer
that were missing which would update the buffer pointer when inserting
text into the history buffer.
cde/lib/DtTerm/TermPrim/TermPrimRender.c