From: Chris Perkins
Subject: Silly printing question.
Date: 
Message-ID: <6cb6c81f.0308210904.3c6d26e@posting.google.com>
I'm using pprint and the standard output stream to display a some
debug messages.  But one section of my code runs over a very long
time. I like seeing the debug messages as they occur, but I don't need
them filling window and after window.

Anyway to use format directives or the pretty printer to keep printing
to the same line and erasing the last output?

I've tried looking this up, but I'm at a loss for the terminology. 

Thanks,

Chris Perkins
Media Lab, Inc.

From: Thomas F. Burdick
Subject: Re: Silly printing question.
Date: 
Message-ID: <xcv65kqnblh.fsf@conquest.OCF.Berkeley.EDU>
········@medialab.com (Chris Perkins) writes:

> I'm using pprint and the standard output stream to display a some
> debug messages.  But one section of my code runs over a very long
> time. I like seeing the debug messages as they occur, but I don't need
> them filling window and after window.
> 
> Anyway to use format directives or the pretty printer to keep printing
> to the same line and erasing the last output?
> 
> I've tried looking this up, but I'm at a loss for the terminology. 

This gets into terminal issues, but on a Unix machine, you should be
able to use Gray streams to make a filter over standard-output that
translates #\Newline to #\Return.  This should work on Unix and DOS,
but is guaranteed not to work on the classic Mac.

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               
From: Chris Perkins
Subject: Re: Silly printing question.
Date: 
Message-ID: <6cb6c81f.0308211334.76f99332@posting.google.com>
···@conquest.OCF.Berkeley.EDU (Thomas F. Burdick) wrote in message news:<···············@conquest.OCF.Berkeley.EDU>...

> This gets into terminal issues, but on a Unix machine, you should be
> able to use Gray streams to make a filter over standard-output that
> translates #\Newline to #\Return.  This should work on Unix and DOS,
> but is guaranteed not to work on the classic Mac.
> 

Thomas,

Thanks.  That was exactly what I was looking for.  Another obvious
Unix-ism that my Mac upbringing has caused to be mis-filed. #\newline
and #\return have more differences besides their ASCII code.

Chris