Mail Archives: djgpp/1997/10/30/07:16:14
Charles Krug wrote:
>
> I'm writing a text mode program that I'd like to "window" in text mode
> --create a text window that I can use to scroll through lengthy lists.
> The application is a database for my own purposes. I'm open to
> suggestions. Here are my thoughts:
>
> 1. Write the display routines using int21 and int10. This is very
> familiar territory for me, but I wonder if there isn't a better way that
> can be done from protected mode.
>
> 2. Display lengthy lists by spawning LESS. This is attractive, and is
> likely to be the first iteration.
>
> 3. I suppose I could roll one w/ Allegro. That may be the last
> iteration--for my own education.
>
> 4. Link using an existing library that provides some of the same
> functions. Unfortunatly, the only one's that I have access to are real
> mode--and frankly not much easier than writing my own int10 routines.
>
> Anyone with another idea?
Textmode: the PDCurses distribution (see Simtel site where you got
djgpp from) has a TUI frame work with already implemented textbrowsers
that can be cut 'n' pasted into your program.
Allegro: on my home page http://www.fys.ruu.nl/~oti/prog.html there's a
section marked "snippets" with code for a fully functional text browser
using Allegro. Cut 'n' paste that one if you wish -- it's 20 lines or
so.
--
------------ Elliott Oti ---------------
------------- http://www.fys.ruu.nl/~oti ---------
- Raw text -