Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Filer in sysRPL

0 views
Skip to first unread message

t.m...@mageos.com

unread,
Dec 18, 1999, 3:00:00 AM12/18/99
to
Hello everybody and happy christmas!!

I have an HP49 and I need a browser that print only texts and directories.
I saw that we can use the filer in sysRPL (in the source code of the
background program) in order to do such thing.
Someone could help me and inform me about the syntax and other informations
about this?

Jean-Yves Avenard

unread,
Dec 19, 1999, 3:00:00 AM12/19/99
to
Hello.

If you have a look to my background program you will see that the SysRPL
filer entry point takes a list of prologue that can be browsed.
Simply change at the beginning the prologue of the DOGROB by the
prologue of a string: DOCSTR

You will get something like:
::
TOADISP
*( Only STRING and DIR )
{ # 2DCC # 02A96 }
*( Default PATH:HOME: )
{ }
* ( Menu: )
{
{ "TREE" fEverywhere cArbo }
{ NULL$ fEverywhere cBip }
{ "VIEW" fNoLib cView }
{ NULL$ fEverywhere cBip }
{ "CANCL" fEverywhere cQUIT }
{
"OK" fEverywhere t1OBJ
::
DROPSWAPDROP
DUPTYPECSTR?
NOTcasedrop DoBadKey
' TakeOver
;
* ( if TakeOver is returned by the program, it will end the filer )
kcEnter
}
}
FPTR2 ^FILER_MANAGERTYPE
NOT?SEMI
;

This program will display only directories and string. You can enter in
directory. By pressing ENTER on the selected string it will push it on
the stack..

You could also use the HP48 entry point: BrowseMem.1 that has been
adapted to use the HP49 Filer.
This entry point BrowseMem.1 is not as flexible as FILER_MANAGERTYPE
(which is the main entry point) but is surely easier to use, and can be
configured to allow selection of multiple files etc...

Jean-Yves

Keith J. Farmer

unread,
Dec 20, 1999, 3:00:00 AM12/20/99
to
Jean-Yves Avenard <jean-yve...@hp.com> wrote in message
news:385C9FB2...@hp.com...
> { "TREE" fEverywhere cArbo }

What does fEverywhere do?

aven...@epita.fr

unread,
Dec 20, 1999, 3:00:00 AM12/20/99
to
Hello Keith...

If you have a look in the MetaKernel manual, you will see that each menu
item defines where it can run...

A menu item is something like:
{ "Menu_Title" Where_it_works Action }

Where_it_works is a bint as well as action..

Here is some part of the Filer.h file that defines all the constant
* 0 You can run the program everywhere (VAR,PORT,BACKUP,LIB)
* 1 Only when you are in VAR
* 2 Won't run if you are in a library
* 3 Won't run if you are in a backup
* 4 Will run only in port (home of the port)

DEFINE fEverywhere ZERO
DEFINE fVar ONE
DEFINE fNoLib TWO
DEFINE fNoBackup THREE
DEFINE fHomePort FOUR


Here are the default action:

DEFINE cBip ZERO
DEFINE cInfo ONE
DEFINE cHexa TWO
DEFINE cView THREE
DEFINE cArbo FOUR
DEFINE cUp FIVE
DEFINE cMaxUp SIX
DEFINE cDown SEVEN
DEFINE cMaxDown EIGHT
DEFINE cSelect NINE
DEFINE cUpDir TEN
DEFINE cDownDir ELEVEN
DEFINE cPreviousMenu TWELVE
DEFINE cNextMenu THIRTEEN
DEFINE cEVAL FOURTEEN
DEFINE cSwapHeader FIFTEEN

DEFINE cDetails TWENTYFOUR
DEFINE cEDIT TWENTYFIVE
DEFINE cCOPY TWENTYSIX
DEFINE cMOVE TWENTYSEVEN
DEFINE cRCL TWENTYEIGHT
DEFINE cPURGE TWENTYNINE
DEFINE cRENAME THIRTY
DEFINE cCRDIR THIRTYONE
DEFINE cORDER THIRTYTWO
DEFINE cSEND THIRTYTHREE
DEFINE cHALT THIRTYFOUR
DEFINE cEDITB THIRTYFIVE
DEFINE cRECV THIRTYSIX
DEFINE cQUIT THIRTYSEVEN
DEFINE cPageUp THIRTYEIGHT
DEFINE cPageDown THIRTYNINE
DEFINE cNewObject FORTY

As you can see, you can define easily your own menu and call all the
filer's internal sub-routine...

You can define your own application. You will then specify wether the
Filer will call your program with a list of names, a list of object
etc.. Have a look to the MetaKernel manual for more instruction
(available on hpcalc.org)

Jean-Yves


In article <s5rsqd...@corp.supernews.com>,


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages