www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/15/04:52:04

From: "Tim Nicholson" <tim AT gizzy DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Rhide and the Ctrl+C key sequence
Date: Fri, 15 Dec 2000 09:34:00 -0000
Organization: Customer of Energis Squared
Lines: 93
Message-ID: <91coml$353$1@news6.svr.pol.co.uk>
References: <91bf72$kn0$1 AT plutonium DOT btinternet DOT com> <91br78$jnj$1 AT slb3 DOT atl DOT mindspring DOT net>
NNTP-Posting-Host: modem-81.vermont.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 976872981 3235 62.137.96.81 (15 Dec 2000 09:36:21 GMT)
NNTP-Posting-Date: 15 Dec 2000 09:36:21 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Marp,

I take your point about using the original CTRL sequences in Windows, but
old habits die hard. It took me several years to change from Ctrl+INST. to
Ctrl+C - The idea of going back again, especially given the CTRL+C is
generally considered to be the standard these days, is not too appealing;

I understand the implications of masking CTRL+C but I think I can live with
this as I normally use CTRL+BREAK anyway. This might all seem a bit petty,
but, being the lazy person I am, it's really a case of anything for an easy
life ;-)

I will try your suggestions - Thanks for the prompt response.

Regards

Tim

"Marp" <marp AT 0 DOT 0 DOT 0 DOT 0> wrote in message
news:91br78$jnj$1 AT slb3 DOT atl DOT mindspring DOT net...
>
> "Tim Nicholson" <djgpp_mail AT gizzy DOT co DOT uk> wrote in message
> news:91bf72$kn0$1 AT plutonium DOT btinternet DOT com...
> > Hi,
> >
> > Having spent the last X years writing software using Window's GUI IDE's
> such
> > as Delphi I am finding Rhide a bit tiresome. In order to make it more
> > friendly (IMHO) I decided to map the CUT, PASTE and COPY keys to Ctrl+X,
> > Ctrl+V and Ctrl+C.
>
> The default keypresses in rhide for those operations are also the same in
> most windows programs, too. If you get used to using them instead (in both
> windows and rhide), you might not find the CTRL+C issue to be much of a
> problem. Many windows programs list only the CTRL+KEY shortcuts you
> specified, but also support the key shortcuts used by default in rhide
(for
> cut./copy/paste that is).
>
> More...
>
> >
> > The problem is this...
> >
> > Rhide detects Ctrl+C as a 'break request' and thinks that I want to
> > interrupt the program.
>
> Yes that's usually what you use CTRL+C for in dos and console windows
> programs, especially when a bug in the program prevents it from being
> terminated normally, but you wouldn't want it to terminate rhide itself
> which is why it has code to handle that event. The default behavior would
> terminate both child and parent (rhide) programs.
>
> More...
>
> >
> > Is there any easy way to disable this behaviour in Rhide so that I can
> > detect the key sequence?
> >
>
> You can invoke rhide with the -C switch, but you loose the ability to use
> CTRL+C and CTRL+BREAK to interrupt a program you're working on within
rhide.
> I suggest you try to get used to the default keypresses instead.
>
> > I have all the source files and can add a bit of code in the
> initialisation
> > routine - problem is, I have no idea how to do it!
>
> That may not be necessary. Try using the -C switch first to see if it
solves
> your problem. If you find this unacceptable, you can try adding
> __djgpp_set_ctrl_c(0) which will disable a SIGINT signal for CTRL+C, but
you
> will still be able to use CTRL+BREAK to interrupt a program within rhide.
> That may be the behavior you're looking for ;-)
>
> Hope this helps.
>
> Marp
>
> >
> > Thanks
> >
> > Tim Nicholson
> >
> >
> >
> >
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019