Re: Control-c
"Doug Lawry" <[email protected]> Sat, 18 Mar 2006 09:15:27 -0000 (GMT)
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
If you are on Unix/Linux, set the interrupt key to something else,
typicall Del, by a command such as "stty intr '?'" in your ".profile".
Check also for relevant settings in "$FGLDIR/etc/fglprofile".
--
Regards,
Doug Lawry
www.douglawry.webhop.org
Gabriel Arimany said:
> Hello,
> I don't know how can I block the key control-c to be interpreted as a
> cancel in FGLGUI=0, when I run a program in graphic mode it's perfect,
> but when I use text mode, the control-c = cancel.
>
> Here is an example:
> example.4gl
> DEFINE cdepto SMALLINT
> MAIN
> OPEN FORM ventana FROM "example"
> DISPLAY FORM ventana
> INPUT BY NAME cdepto
> ON ACTION cancel
> MESSAGE "canceled!!"
> EXIT INPUT
> SLEEP 2
> ON KEY ( CONTROL-C )
> MESSAGE "Control-C!!"
> SLEEP 2
> END INPUT
> CLOSE FORM ventana
> END MAIN
>
> example.per
> SCREEN
> {
> Depto: [d1]
> }END
>
> ATTRIBUTES
> d1 = FORMONLY.cdepto TYPE SMALLINT, COLOR=CYAN;
> END
>
> Thank's for your help and time
>
> Gabriel Arimany
> Grupo Unipharm
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________