From: jhmeyers@miu.edu (John H Meyers)
Subject: DISP for small font, 10-line screen
Date: 05 Nov 1997 00:00:00 GMT
Message-ID: <63pqaa$u6m$1@news.iastate.edu>
References: <345f127f.8285144@news.tuwien.ac.at>
Organization: MIU Computer Services,  Fairfield, IA 52557.  Not Approved.
Reply-To: jhmeyers@miu.edu
Newsgroups: comp.sys.hp48


In article <345f127f.8285144@news.tuwien.ac.at>,
e9625682@stud3.tuwien.ac.at (Nikolaus Jozefiak) writes:

> with [1 DISP thru 7 DISP] I can display only 7 lines...
> is it possible to switch to the small font so I can display 10 lines ??

The DISPX program below can be invoked as many times as desired,
to display a series of objects or strings in "small font" on
various lines (1-10) of the display; you will also want to first
do CLLCD to clear the display, and 7 FREEZE to freeze the display.

Example: Ten-level stack display (over-simplified for User-RPL):

@ Note that the symbol at left introduces comments (omit when typing)

%%HP: T(3); @ \-> is right-arrow, etc.
\<< CLLCD STD DEPTH 1 SWAP 10 MIN FOR n n PICK \->STR n ": " + SWAP +
  1 33 SUB @ limit string to average displayable length
  11 n - DISPX NEXT 7 FREEZE \>> @ Level 1 on line 10, etc.

@ \->STR is needed only to display 'symbol' with tic marks.
@ "String" displays without quotation marks (see below).

Store the following program in 'DISPX':

%%HP: T(3); @ \-> is right-arrow, etc.
@ Object row ==> (display object in small font on row 1-10)
\<< DUP TYPE { 514 DOERR } IFT
    SWAP 1 \->GROB { #0 #0 } { #83h #6h } SUB @ limit grob to 131x6
    0 ROT 1 - 6 * #194F7h SYSEVAL ROT
    #4E2CFh SYSEVAL #128B0h SYSEVAL \>>
@ Checksum: #98A7h
@ Uses supported entry points: COERCE2, TURNMENUOFF, XYGROBDISP

Standard DISCLAIMER re programs containing SYSEVAL:
Type program carefully, verify checksum, backup memory before using.

DISPX will display text on *either* the stack display *or* the
graphics display, depending upon which one is currently active
(commands PVIEW and TEXT can be used to switch between display types).

Both DISPX and the stack display program include commands to
limit the size of objects processed, in case you supply an
argument which would cause excessive memory to be allocated.

The simple nature of these programs causes larger objects to consume
more processing time while being converted to strings and/or grobs;
this could be alleviated by employing more system functions
to perform the standard limited "stack decompilation" first,
but I elected to keep the programs as simple as possible.

If you want string objects to be displayed with quotes,
replace \->STR by #15A0Eh SYSEVAL (this is EDITDECOMP$
which decompiles for command line editing).

Using DISPX allocates 136 bytes extra memory to the stack display;
this memory remains allocated after the programs terminate, even
though the menu re-appears and "covers" the bottom of the display
when you press another key (causing the stack to re-display).

You need not do anything about this at all, or you can do
RECLAIMDISP (#130ACh SYSEVAL) at some later time
(but not during either of the above programs).

-----------------------------------------------------------
With best wishes from:   John H Meyers   <jhmeyers@mum.edu>
