[comp.mail.mush] prompt in curses mode.

johnb@barfly.corp.sun.com (John Benninghoff) (03/15/91)

Is there a way to disable the ...continue... prompt in curses mode?

-- 

John Benninghoff
Windows support engineer
USAC/Sun Microsystems

schaefer@ogicse.ogi.edu (Barton E. Schaefer) (03/17/91)

In article <3596@jethro.Corp.Sun.COM> johnb@barfly.corp.sun.com
(John Benninghoff) writes:
} Is there a way to disable the ...continue... prompt in curses mode?

Depends what you mean by "disable".

In general, you don't *want* to disable the ...continue... prompt.  It
keeps your screen from being redrawn in circumstances where you would
not want it redrawn -- for example, if you display a message that is
too short to go through your pager, or if you use a pager like "more"
that falls off the end of the file without stopping, ...continue...
mode leaves the message on the screen instead of wiping it out and
redrawing the headers.

If there are specific commands where you want the screen to always
get redrawn after the command executes, you can always rebind those
operations using bind-macro so that a forced redraw is done at the
end.  For example:

    bind-macro ! [shell-escape][getline][no-op]

The [no-op] action has exaclty one effect: it causes the screen to be
redrawn when it happens at the ...continue... prompt.  (I wish I could
think of a better example -- shell escapes are one of the cases where
I would want continue mode to remain ....)
-- 
Bart Schaefer                                           schaefer@zipcode.com
Z-Code Software Corporation                             schaefer@cse.ogi.edu