Mail Archives: djgpp/1993/07/31/05:03:59
> You've got two options.
>
> 1. Keep an array of page offsets on the way through and use an
> absolute (or relative) seek to get back.
I think this is a better way to seek backward. However, for implementing
page, which can scroll 1 line, I have to keep the offsets of every line,
which is very memory consuming but it is the fastest way.
> 2. Go back by pages (of say 1024 or 4096) and scan backwards counting
> CR-LFs
>
This is not possible because there is some lines longer than 80 characters
and do not have CR-LF.
- Raw text -