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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cde/lib/DtTerm/TermPrim/TermPrimRender.c b/cde/lib/DtTerm/TermPrim/TermPrimRender.c index 3f250f0..9582795 100644 --- a/cde/lib/DtTerm/TermPrim/TermPrimRender.c +++ b/cde/lib/DtTerm/TermPrim/TermPrimRender.c @@ -854,6 +854,9 @@ _DtTermPrimFillScreenGap(Widget w) eCol, eIndex, eValues[eIndex]); } + c1 = _DtTermPrimBufferGetCharacterPointer( + tBuffer, i1, eCol); + (void) _DtTermPrimBufferInsert( tpd->historyBuffer, tpd->lastUsedHistoryRow, @@ -879,6 +882,10 @@ _DtTermPrimFillScreenGap(Widget w) eCol, eIndex, 0); } } + + c1 = _DtTermPrimBufferGetCharacterPointer( + tBuffer, i1, eCol); + (void) _DtTermPrimBufferInsert( tpd->historyBuffer, tpd->lastUsedHistoryRow, ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ cdesktopenv-devel mailing list cdesktopenv-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel