List Info

Thread: Ctrl+d, interactive mode and REPL




Ctrl+d, interactive mode and REPL
user name
2006-02-15 01:31:33
Good day, list

Is it possible to make cmucl exit when ctrl+d is pressed in
the REPL,
the same was as many of the UNIX`s interactive tools do?

This might look like a compromise to the UNIX side, as per
the
Unix Haters Handbook, but nevertheless it would be a great
convenience
to have this feature.

regards, Samium Gromoff


Ctrl+d, interactive mode and REPL
user name
2006-02-15 13:54:58
>>>>> "Samium" == Samium Gromoff
<_deepfiremail.ru> 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> 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.

Ray



Ctrl+d, interactive mode and REPL
user name
2006-02-15 20:47:18
On Wed, 2006-02-15 at 08:54 -0500, Raymond Toy wrote:
> >>>>> "Samium" == Samium
Gromoff <_deepfiremail.ru> 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.

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

>     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.

Perhaps it could be made configurable?

> Ray

regards, Samium Gromoff


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )