RE: Control-c
"Gabriel Arimany" <[email protected]> Sat, 18 Mar 2006 12:16:14 -0800
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <000201c64ac8$d6aec390$b928b1c0@GTVNP028> |
Thanks,
I'm working on a linux redhat fedora 3, and genero 1.32
(fjs-fgl-1.32.1d-lnxlc23.sh), I already set the "stty intr undef", also
try "stty intr ^E", and I also check on the file
"$FGLDIR/etc/fglprofile" and there's nothing relevant.
Also try using "INPUT BY NAME cdepto ATTRIBUTES(CANCEL=FALSE)",
Also: "BEFORE INPUT
CALL dialog.setActionActive("cancel",FALSE)"
Also: MAIN
CALL ui.Interface.loadActionDefaults("ad")
Where ad.4ad:
<ActionDefaultList>
<ActionDefault name="cancel" text="Cancelar" comment="Cancelar"
acceleratorName="control-b" />
</ActionDefaultList>
And always the control-c, cancels the input...
Gabriel
-----Mensaje original-----
De: [email protected] [mailto:[email protected]] En
nombre de Doug Lawry
Enviado el: Sábado, 18 de Marzo de 2006 01:15 a.m.
Para: Gabriel Arimany
CC: [email protected]
Asunto: Re: [fourjs-users] Control-c
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
______________________________________________________________________