[Lazarus] Displaying text with colour and insertion point
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Thu May 17 06:27:03 CEST 2012
Mark Morgan Lloyd schrieb:
>> I assume you have a fixed amount of lines and columns? If so it should
>> be very simple to write a pos-highlighter (part of your project, does
>> not need to be registerred in IDE), that has
>>
>> CharAttributes: Array[1..maxLine] of array [ 1..MaxColumn] of TAttribute
>>
>> Of course that is not practical if you have thousands of lines, as it
>> would require a lot of storage....
>
> Since it's emulating a mechanical terminal that printed to roll paper,
> the number of lines is indeterminate and increasing. I suppose that I
> could limit it to (say) 1000, but if other people started using it
> there'd be bound to be somebody complain.
Have you ever seen a roll of paper, of indeterminate length? ;-)
And a mechanical terminal with multi-color ribbon?
[Well, I've seen a black/red ribbon many years ago...]
DoDi
More information about the Lazarus
mailing list