I'm writing a plugin which will display a lot of text. My first idea was to write to a temporary file and launch the text viewer, which could handle the scrolling, but I understand that a plugin may not launch another plugin.
Currently, I'm using rb->splash on a short amount of text, and parsing left and right to display the next or previous screen, but in addition to being incredibly ugly (from a coding standpoint), I have no way to know how much text I can print to one screen (so I'm just snprintf'ing a fixed, relatively small amount at a time).
Can anyone suggest a better way?