>>>>> "Samium" == Samium Gromoff <[EMAIL PROTECTED]> writes:

    Samium> On Wed, 2006-02-15 at 08:54 -0500, Raymond Toy wrote:
    >> >>>>> "Samium" == Samium Gromoff <[EMAIL PROTECTED]> writes:
    >> 
    Samium> Is it possible to make cmucl exit when ctrl+d is pressed in the 
REPL,
    Samium> the same was as many of the UNIX`s interactive tools do?
    >> 
    >> There is a constant that controls this and it's set to 10, so 10 C-d's
    >> are needed to exit.  I once changed it to a defvar and set it to 1.
    >> Even then it didn't really do what you want.  You have to press C-d
    >> and return.  That caused cmucl to switch input from standard-input to
    >> terminal-input.  Another C-d/Return exited cmucl.

    Samium> That`s for top level frame, yes, but what about inner, debug frames?

What do you want C-d to do on a debug frame?

    Samium> This might look like a compromise to the UNIX side, as per the
    Samium> Unix Haters Handbook, but nevertheless it would be a great 
convenience
    Samium> to have this feature.
    >> 
    >> Having accidentally exited clisp before, I find it rather annoying,
    >> especially when my Lisp contained lots of state that I wasn't ready to
    >> destroy it yet.

    Samium> Perhaps it could be made configurable?

It was configurable.  You could (setf *eofs* 0) and exit (sort of) on
the first C-d/Return.

I never bothered to check in this change.

And you probably don't want to have to press C-d and Return, but
that's how the current code works, because (I think), the input is
line-buffered.


Ray


Reply via email to