filePro Printing to less

Bob Stockler bob at trebor.iglou.com
Tue May 17 06:36:24 PDT 2005


The thread about printing to 'less' inspired me to do a little
testing.  I have these printers define in my config file:

  printer5=file,nocodes,>/tmp/file.txt,Write to a file
  printer6=less,nocodes,| less,View using less
  printer7=video,nocodes,less,View using less

My MENU EDIT II program has a menu documentation feature which
allows the user to choose the printer to be used for output.
At the screen where the user may choose what features of the
menu are to be documented, choice A will document the menu
itself, any associated shell scripts, and the menu help file if
one exists.

I documented a menu which has associated shell scripts and a
help file.  After using printer5, 'wc' showed the file size:

    210    598   5655 /tmp/file.txt

Using printer6 and printer7 allowed me to view the output with
'less' perfectly - I could scroll back and forth, go back and
forth between the beginning of the output and its end, anything
I wanted to do to view or review.

The downside was, on returning to the MENU EDIT II main screen,
whatever was on the screen when I exited 'less" remained on the
screen to clutter it up.  That's easy to fix, and I shall take
a few minutes to do that this morning.

Bob

PS - filePro 5.0.13 on SCO OSR 5.0.6.

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list