Re: accept key F11

Mike Aubury <[email protected]> Thu, 20 Jul 2023 07:28:17 +0100
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WEAmdnVXbDeW0WTavu2_Nz3UabkxMco=PLL4szFwteakw@mail.gmail.com>
--===============8171806332050410332==
Content-Type: multipart/alternative; boundary="0000000000008d7b250600e5411b"

--0000000000008d7b250600e5411b
Content-Type: text/plain; charset="UTF-8"

Does the configure actually stop?
As I said before, it doesn't look like a fatal error, just a warning..


On Thu, 20 Jul 2023, 02:16 Michael Pope, <[email protected]> wrote:

> It's configure which is failing. I can still run 'make'.
>
> The keys.c override doesn't seem to be working, maybe I have to get this
> configure to work before the changes will come through.
> Regards,
>
> *Michael Pope*
>
> On 14/7/23 16:41, Mike Aubury wrote:
>
> 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
>>>
>>

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

<div dir=3D"auto">Does the configure actually stop?<div dir=3D"auto">As I s=
aid before, it doesn&#39;t look like a fatal error, just a warning..=C2=A0<=
/div><div dir=3D"auto"><br></div></div><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">On Thu, 20 Jul 2023, 02:16 Michael Pope, &=
lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; w=
rote:<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>It&#39;s configure which is failing. I can still run &#39;make&#39;.=
</p>
    <p>The keys.c override doesn&#39;t seem to be working, maybe I have to
      get this configure to work before the changes will come through.<br>
    </p>
    <div>
      <div dir=3D"ltr">
        <div>Regards,</div>
        <div><br>
        </div>
        <div><b>Michael Pope</b><br>
        </div>
        <div><br>
        </div>
      </div>
    </div>
    <div>On 14/7/23 16:41, Mike Aubury wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <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>
        <div dir=3D"auto"><br>
        </div>
        <div dir=3D"auto"><br>
          <div class=3D"gmail_quote" dir=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]" ta=
rget=3D"_blank" rel=3D"noreferrer">[email protected]</a>&gt;
              wrote:<br>
            </div>
            <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex">
              <div>
                <p>Thanks Mike,</p>
                <p>I went and changed that line and now I&#39;m having
                  trouble compiling 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/aub=
it/1.6.1/aubit4glsrc<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 wha=
t to autodetect... everything...<br>
                  =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking ins=
tall 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 /h=
ome/map7/aubit4gl instead)<br>
                  =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking ins=
tall location for global aubitrc
                  - /etc/opt/aubit4gl... no<br>
                  =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : checking ins=
tall location for global aubitrc
                  - /home/map7/.aubit4gl... no<br>
                  =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : configure: e=
rror: 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 confi=
g file in
                  /home/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">
                  <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&qu=
ot;);<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:mic=
[email protected]" rel=3D"noreferrer noreferrer" target=3D"_blank">michael=
@dtcorp.com.au</a>&gt;
                      wrote:<br>
                    </div>
                    <blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We ha=
ve
                      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 edi=
ting
                      every file 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].=
net" rel=3D"noreferrer noreferrer" target=3D"_blank">Aubit4gl-discuss@lists=
.sourceforge.net</a><br>
                      <a href=3D"https://lists.sourceforge.net/lists/listin=
fo/aubit4gl-discuss" rel=3D"noreferrer noreferrer noreferrer" target=3D"_bl=
ank">https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss</a><br>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
  </div>

</blockquote></div>

--0000000000008d7b250600e5411b--


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


--===============8171806332050410332==
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

--===============8171806332050410332==--