comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Ctrl-D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Ctrl-D [message #7359] Sun, 10 November 1996 00:00 Go to next message
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
Hi,

does anyone know of a way to disable the Ctrl-D key when running on a
Unix system, or even better set it to what it does in Emacs (delete a
character in command line)? I like the way the emacs control
characters (C-a, C-e, C-k) are available for editing the command line,
but this similarity lulls me into using C-d as well sometimes. Then
my session is gone instantly. Highly annoying.

Mark Fardal
University of Colorado
Re: Ctrl-D [message #7431 is a reply to message #7359] Tue, 12 November 1996 00:00 Go to previous messageGo to next message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
>> does anyone know of a way to disable the Ctrl-D key when running on a
>> Unix system, or even better set it to what it does in Emacs (delete a
>> character in command line)? I like the way the emacs control

A re-mapping of the keys within emacs, or by using xmodmap
doesn't help with this problem?


>> characters (C-a, C-e, C-k) are available for editing the command line,
>> but this similarity lulls me into using C-d as well sometimes. Then
>> my session is gone instantly. Highly annoying.
>
> I have this same problem. I've gone so far as to complain to RSI about
> it, and the response I got was "Well...but people are used to the status
> quo and would complain about the change." (More or less anyway.)

I agree with RSI. You can't just take away a long-standing feature.


> I don't know who *expects* ^D to kick them out when they're in the middle
> of a command line...

I expect it. It has been a part of IDL for at least 5 years.

>
> I'm all for a revolution. Viva la' ^D==delete! :-)
>
> Regards,
>
> Brian
>
>
Re: Ctrl-D [message #7442 is a reply to message #7359] Tue, 12 November 1996 00:00 Go to previous messageGo to next message
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
> Mark Fardal <fardal@shapley.colorado.edu> wrote:
>
>> does anyone know of a way to disable the Ctrl-D key when running on a
>> Unix system, or even better set it to what it does in Emacs (delete a
>> character in command line)? I like the way the emacs control
>> characters (C-a, C-e, C-k) are available for editing the command line,
>> but this similarity lulls me into using C-d as well sometimes. Then
>> my session is gone instantly. Highly annoying.
>
> I have this same problem. I've gone so far as to complain to RSI about
> it, and the response I got was "Well...but people are used to the status
> quo and would complain about the change." (More or less anyway.) I
> don't know who *expects* ^D to kick them out when they're in the middle
> of a command line...
>
> I'm all for a revolution. Viva la' ^D==delete! :-)
>
> Regards,
>
> Brian

Hmm...interesting. Not that I've ever written a language interpreter,
but it doesn't seem like it would be hard to have a routine that allows
you to reset the behavior of the command keys like Ctrl-D. Or you could
just use a system variable that gets examined every time Ctrl-D is hit,
with possible meanings (quit session, delete key, do nothing). Then you
could just set this variable in your idl.startup file and everyone would
be happy.

Anyway, thanks for the info,
Mark
Re: Ctrl-D [message #7477 is a reply to message #7359] Sat, 16 November 1996 00:00 Go to previous message
Tim Patterson is currently offline  Tim Patterson
Messages: 65
Registered: October 1995
Member
Andilu wrote:
>
>>> does anyone know of a way to disable the Ctrl-D key when running on a
>>> Unix system, or even better set it to what it does in Emacs (delete a
>>> character in command line)? I like the way the emacs control
>

>> I have this same problem. I've gone so far as to complain to RSI about
>> it, and the response I got was "Well...but people are used to the status
>> quo and would complain about the change." (More or less anyway.)
>
> I agree with RSI. You can't just take away a long-standing feature.

Well, it is only a feature on the Unix versions of IDL. On the VMS
version,
CRTRL-D moves back one character instead (LEFT ARROW behaviour).
On my system CTRL-D doesn't kick you out of IDL in the middle of the
command line, only if there is nothing after the IDL prompt
(in the manual it says it does EOF if empty or EOL if not).
It does seem a bit user-unfriendly to me (but I guess that's
juts Unix :)

Tim




>> I don't know who *expects* ^D to kick them out when they're in the middle
>> of a command line...
>
> I expect it. It has been a part of IDL for at least 5 years.
>
>>
>> I'm all for a revolution. Viva la' ^D==delete! :-)
>>
>> Regards,
>>
>> Brian
>>
>>

--
Dr.Feelgood's Amazing And Marvellous Poetic Panacea
Guaranteed To Cure All Ailments Of The Soul
NO REFUNDS
http://condor.lpl.arizona.edu/~tim/
Re: Ctrl-D [message #7484 is a reply to message #7359] Fri, 15 November 1996 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
> I strongly disagree - I've been using emacs for 12 years, so that beats
> the
> 1 year I've been using IDL, so that's a longer standing feature. RSI may


With that line of thinking it's simple-- stop using IDL.


> certainly keep the status quo as the default, but I would dearly love to
> see DEFINE_KEY operate on control keys as well as function keys. Ctrl-D
> and ctrl-X would swap definitions immediately!


I'm all for added features such as the one you suggest, but
I am very against taking thinks away willy-nilly. Just ask
those who are still looking for /smooth in contour!


--
Andrew F. Loughe afl@cdc.noaa.gov
University of Colorado, CIRES http://cdc.noaa.gov/~afl
Campus Box 449 phn:(303)492-0707 fax:(303)497-7013
Boulder, CO 80309-0449 "He who laughs last thinks slowest!"
Re: Ctrl-D [message #7495 is a reply to message #7359] Thu, 14 November 1996 00:00 Go to previous message
Mike Ressler is currently offline  Mike Ressler
Messages: 3
Registered: November 1996
Junior Member
Andilu wrote:
>
>>> characters (C-a, C-e, C-k) are available for editing the command line,
>>> but this similarity lulls me into using C-d as well sometimes. Then
>>> my session is gone instantly. Highly annoying.
>>
>> I have this same problem. I've gone so far as to complain to RSI about
>> it, and the response I got was "Well...but people are used to the status
>> quo and would complain about the change." (More or less anyway.)
>
> I agree with RSI. You can't just take away a long-standing feature.

I strongly disagree - I've been using emacs for 12 years, so that beats
the
1 year I've been using IDL, so that's a longer standing feature. RSI may
certainly keep the status quo as the default, but I would dearly love to
see DEFINE_KEY operate on control keys as well as function keys. Ctrl-D
and
ctrl-X would swap definitions immediately!

>> I don't know who *expects* ^D to kick them out when they're in the middle
>> of a command line...
>
> I expect it. It has been a part of IDL for at least 5 years.

Since few other programs use ctrl-D to exit, I definitely don't expect
it and
would just like to see it redefineable. Heck, even Netscape (which I'm
using
right now) knows how to do something sensible with ctrl-D.

--
Mike Ressler, PhD ressler@cougar.jpl.nasa.gov
Astronomer, Infrared Camera Engineer, System Administrator
Slayer of trees, observatory vehicles, and /tmp disks
"A kludge of the highest order ..."
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MPEG Movies from IDL
Next Topic: Simple, strange bug with .compile

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:21:11 PDT 2025

Total time taken to generate the page: 0.00488 seconds