Re: Termcap issue.

Mike Aubury <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WGDNAtXME15=8PEYHDWdFJ9RpXic+X7nP5MTiRherbimw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.