Re: accept key F11

Mike Aubury <[email protected]> Fri, 14 Jul 2023 07:41:48 +0100
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WFO_Pw-Xzh=it4TPuUtOTa-3mp9CJpOP8ZbOzsyOT3nZQ@mail.gmail.com>
--===============2957576581136454502==
Content-Type: multipart/alternative; boundary="000000000000f35cec06006cbe19"

--000000000000f35cec06006cbe19
Content-Type: text/plain; charset="UTF-8"

Is that the configure failing or the make failing?


Only it doesn't look like a fatal erorr.
It shouldn't need to find an aubitrc...


On Fri, 14 Jul 2023, 02:09 Michael Pope, <[email protected]> wrote:

> Thanks Mike,
>
> I went and changed that line and now I'm having trouble compiling
> aubit4gl. It cannot find the aubitrc even though I have it in a location
> it's trying to search.
>
>
>       - Commands
>         : cd ~/src/aubit/1.6.1/aubit4glsrc
>         : ./configure
>
>       - Error
>         : checking what to autodetect... everything...
>         : checking install root 'prefix=/opt/aubit4gl'... 2here
>         : No (using /home/map7/aubit4gl instead)
>         : checking install location for global aubitrc -
> /etc/opt/aubit4gl... no
>         : checking install location for global aubitrc -
> /home/map7/.aubit4gl... no
>         : configure: error: Failed to find location for aubitrc
> configuration file
>
>       - Config file
>         I have a config file in /home/map7/.aubit4gl/aubitrc
>
> Regards,
>
> *Michael Pope*
>
> On 12/7/23 17:43, Mike Aubury wrote:
>
> There's no environment variables you can set to do this - as you say - you
> can do it by adjusting the code.
>
> But - due to the wonders of Open Source Software - you can just adjust the
> default..
>
> lib/libaubit4gl/keys.c - around line 594 :
>
> void
> A4GL_init_stddbscr (void)
> {
>   static int inited = 0;
>   if (inited)
>     return;
>   inited = 1;
> #ifdef DEBUG
>   A4GL_debug ("init_stddbscr - form_line");
> #endif
>   std_dbscr.mode = 0;
>   std_dbscr.colour = 0;
>   std_dbscr.border = 0;
>   std_dbscr.inpattr = 0;
>   std_dbscr.dispattr = 0;
>   std_dbscr.nextkey = A4GLKEY_F (3);
>   std_dbscr.prevkey = A4GLKEY_F (4);
> *  std_dbscr.acckey = 27;*
>   std_dbscr.helpkey = 23;
>
>
> Replace that with something like :
>
> *  std_dbscr.acckey = A4GLKEY_F (11);*
>
> obviously recompile etc. and that should be the default for all programs..
>
> On Wed, 12 Jul 2023 at 07:12, Michael Pope <[email protected]> wrote:
>
>> We have multiple forms (about 1000) in our old informix code which don't
>> declare an accept key and on the old system it used to be F11 by using a
>> termcap file in the operating system to mimic an ESC key. I don't want
>> to do this on the new system for obvious reasons, I also don't want to
>> manually edit 1000 files.
>>
>> Is there a global environment variable or config option in Aubit4GL to
>> set the 'accept key' to F11 instead of me editing every file and
>> entering in the following;
>>
>>      OPTIONS
>>      accept key F11
>>
>>
>> from
>>
>> Michael
>>
>>
>>
>> _______________________________________________
>> Aubit4gl-discuss mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>>
>

--000000000000f35cec06006cbe19
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Is that the configure failing or the make failing?=
=C2=A0<br><br><br>Only it doesn&#39;t look like a fatal erorr.=C2=A0</div><=
div dir=3D"auto">It shouldn&#39;t need to find an aubitrc...=C2=A0</div><di=
v dir=3D"auto"><br></div><div dir=3D"auto"><br><div class=3D"gmail_quote" d=
ir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, 14 Jul 2023, 02:0=
9 Michael Pope, &lt;<a href=3D"mailto:[email protected]">michael@dtcorp=
.com.au</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 =20
   =20
 =20
  <div>
    <p>Thanks Mike,</p>
    <p>I went and changed that line and now I&#39;m having trouble compilin=
g
      aubit4gl. It cannot find the aubitrc even though I have it in a
      location it&#39;s trying to search.<br>
    </p>
    <p><br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Commands<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : cd ~/src/aubit/1.6.1/aub=
it4glsrc<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : ./configure<br>
      =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Error<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking what to autodet=
ect... everything...<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking install root &#=
39;prefix=3D/opt/aubit4gl&#39;... 2here<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : No (using /home/map7/aub=
it4gl instead)<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking install locatio=
n for global aubitrc -
      /etc/opt/aubit4gl... no<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking install locatio=
n for global aubitrc -
      /home/map7/.aubit4gl... no<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : configure: error: Failed=
 to find location for aubitrc
      configuration file<br>
      <br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Config file<br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I have a config file in /h=
ome/map7/.aubit4gl/aubitrc<br>
      <br>
    </p>
    <div>
      <div dir=3D"ltr">
        <div>Regards,</div>
        <div><br>
        </div>
        <div><b>Michael Pope</b></div>
        <div><b><br>
          </b></div>
      </div>
    </div>
    <div>On 12/7/23 17:43, Mike Aubury wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">There&#39;s no environment variables you can set to =
do
        this - as you say - you can do it by adjusting the code.
        <div><br>
        </div>
        <div>But - due to the wonders of Open Source Software - you can
          just adjust the default..</div>
        <div><br>
        </div>
        <div>lib/libaubit4gl/keys.c - around line 594 :</div>
        <div><br>
        </div>
        <div>void<br>
          A4GL_init_stddbscr (void)<br>
          {<br>
          =C2=A0 static int inited =3D 0;<br>
          =C2=A0 if (inited)<br>
          =C2=A0 =C2=A0 return;<br>
          =C2=A0 inited =3D 1;<br>
          #ifdef DEBUG<br>
          =C2=A0 A4GL_debug (&quot;init_stddbscr - form_line&quot;);<br>
          #endif<br>
          =C2=A0 std_dbscr.mode =3D 0;<br>
          =C2=A0 std_dbscr.colour =3D 0;<br>
          =C2=A0 std_dbscr.border =3D 0;<br>
          =C2=A0 std_dbscr.inpattr =3D 0;<br>
          =C2=A0 std_dbscr.dispattr =3D 0;<br>
          =C2=A0 std_dbscr.nextkey =3D A4GLKEY_F (3);<br>
          =C2=A0 std_dbscr.prevkey =3D A4GLKEY_F (4);<br>
          <b>=C2=A0 std_dbscr.acckey =3D 27;</b><br>
          =C2=A0 std_dbscr.helpkey =3D 23;<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Replace that with something like :=C2=A0</div>
        <div><br>
          <b>=C2=A0 std_dbscr.acckey =3D=C2=A0A4GLKEY_F (11);</b><br>
        </div>
        <div><b><br>
          </b></div>
        <div>obviously recompile etc. and that should be the default for
          all programs..</div>
      </div>
      <br>
      <div class=3D"gmail_quote">
        <div dir=3D"ltr" class=3D"gmail_attr">On Wed, 12 Jul 2023 at 07:12,
          Michael Pope &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank" rel=3D"noreferrer">[email protected]</a>&gt;
          wrote:<br>
        </div>
        <blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">We
          have multiple forms (about 1000) in our old informix code
          which don&#39;t <br>
          declare an accept key and on the old system it used to be F11
          by using a <br>
          termcap file in the operating system to mimic an ESC key. I
          don&#39;t want <br>
          to do this on the new system for obvious reasons, I also don&#39;=
t
          want to <br>
          manually edit 1000 files.<br>
          <br>
          Is there a global environment variable or config option in
          Aubit4GL to <br>
          set the &#39;accept key&#39; to F11 instead of me editing every f=
ile
          and <br>
          entering in the following;<br>
          <br>
          =C2=A0=C2=A0=C2=A0=C2=A0 OPTIONS<br>
          =C2=A0=C2=A0=C2=A0=C2=A0 accept key F11<br>
          <br>
          <br>
          from<br>
          <br>
          Michael<br>
          <br>
          <br>
          <br>
          _______________________________________________<br>
          Aubit4gl-discuss mailing list<br>
          <a href=3D"mailto:[email protected]" target=
=3D"_blank" rel=3D"noreferrer">[email protected]</a><b=
r>
          <a href=3D"https://lists.sourceforge.net/lists/listinfo/aubit4gl-=
discuss" rel=3D"noreferrer noreferrer" target=3D"_blank">https://lists.sour=
ceforge.net/lists/listinfo/aubit4gl-discuss</a><br>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div></div></div>

--000000000000f35cec06006cbe19--


--===============2957576581136454502==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2957576581136454502==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============2957576581136454502==--