delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/30/07:16:14

Newsgroups: comp.os.msdos.djgpp
From: Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl>
Subject: Re: Text mode windowing
Sender: usenet AT fys DOT ruu DOT nl (News system Tijgertje)
Message-ID: <3456CADA.56C@stud.warande.ruu.nl>
Date: Wed, 29 Oct 1997 05:34:18 GMT
References: <3456339B DOT 6FBE6F9B AT pentek DOT com>
Mime-Version: 1.0
Organization: Bipolar Widgets International
Lines: 36
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019