Re: Termcap issue.

Pigi <[email protected]> Tue, 23 Jul 2019 07:42:27 +0200
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <1943500.eRPJUEcuqv@topolinux>
Hi Mike! 
   The terminal I'm ( actually ) using is an rxvt that "present" himself as xterm

pigi@topolinux: /home/pigi> echo $TERM
xterm

but it could also be a putty or similar. 

In any case you confirm that Function keys, if correctly configured by terminfo, works as expected ?

Thanks in advance

Pierluigi


On Monday 22 July 2019 21:44:53 Mike Aubury wrote:

Hi,
Aubit4GL uses ncurses for UI, and ncurses used terminfo definitions.
Its worth checking the ncurses documention for your settings, but it would help to know what terminal you're using (Linux console, putty etc etc) 


On Mon, 22 Jul 2019, 12:13 Pigi, <[email protected]> wrote:

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

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss