Termcap issue.
Pigi <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <2544251.bBKhxULhJ2@topolinux> |
Hi all,
Thx to Mike I've been able to compile my first example and I can start it.
Unfortunally in all of my code I use quite a lot of Fn keys ( F3, F10 and so on ).
They don't work, and I thought it was a problem with termcap, as it was in old fglgo environment.
I've then copied a working termcap locally and used the TERMCAP variable to "use" it.
It didn't work. If I press th F3 key, which in my programs is the "quit" key, I get "[13~" on the input field, but is not "intercepted" from the program.
This is the relevant code in my 4gl ( partial ):
open window menu at 6,25 with 15 rows, 30 columns attribute(green,border)
options prompt line last - 2
let ritorno = false
while true
display "" at 13,3 attribute(yellow)
display " F3=RITORNA F10=CONFERMA " at 15,1 attribute(reverse)
prompt " Scelta " for answer
on key(f3)
let ritorno = false
exit while
on key(f10)
call Do_something()
exit while
end prompt
end while
close window menu
This is what I get ( which is very nice drawed ) :
┌──────────────────────────────┐
│ │
│SOCIETA' DEMO │
│ │
│ │
│ 1. Cancellazione azienda │
│ │
│ 2. Caricamento azienda │
│ │
│ 3. Scaricamento azienda │
│ │
│ 4. Ripristino bollato │
│ │
│ Scelta │
│ │
│ F3=RITORNA F10=CONFERMA │
└──────────────────────────────┘
but keys don't work.
Can someone share some light on this ?
Thx in advance.
Pierluigi
_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss