Re: accept key F11

Michael Pope <[email protected]> Fri, 28 Jul 2023 11:11:25 +1000
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8399951040450109950==
Content-Type: multipart/alternative;
 boundary="------------W0SmHTHzMDk83dD0ls1YG0kb"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------W0SmHTHzMDk83dD0ls1YG0kb
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Mike,

It feels like it stops short when it cannot find the aubitrc config file;

checking Autoconf MinGW/CygWin state based on AC macros... MINGW32=no 
CYGWIN=no
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


Regards,

*Michael Pope*


On 20/7/23 16:28, Mike Aubury wrote:
> 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
>>>
--------------W0SmHTHzMDk83dD0ls1YG0kb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Mike,</p>
    <p>It feels like it stops short when it cannot find the aubitrc
      config file;<br>
    </p>
    <p><font size="2">checking Autoconf MinGW/CygWin state based on AC
        macros... MINGW32=no CYGWIN=no<br>
        checking what to autodetect... everything...<br>
        checking install root 'prefix=/opt/aubit4gl'... 2here<br>
        No (using /home/map7/aubit4gl instead)<br>
        checking install location for global aubitrc -
        /etc/opt/aubit4gl... no<br>
        checking install location for global aubitrc -
        /home/map7/.aubit4gl... no<br>
        configure: error: Failed to find location for aubitrc
        configuration file</font><br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">
      <div dir="ltr">
        <div>Regards,</div>
        <div><br>
        </div>
        <div><b>Michael Pope</b><br>
        </div>
        <div>
          <div><br>
          </div>
          <br>
        </div>
      </div>
    </div>
    <div class="moz-cite-prefix">On 20/7/23 16:28, Mike Aubury wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGAq4WEAmdnVXbDeW0WTavu2_Nz3UabkxMco=PLL4szFwteakw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Does the configure actually stop?
        <div dir="auto">As I said before, it doesn't look like a fatal
          error, just a warning.. </div>
        <div dir="auto"><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 20 Jul 2023, 02:16
          Michael Pope, &lt;<a href="mailto:[email protected]"
            moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div>
            <p>It's configure which is failing. I can still run 'make'.</p>
            <p>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.<br>
            </p>
            <div>
              <div dir="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="cite">
              <div dir="auto">
                <div>Is that the configure failing or the make failing? <br>
                  <br>
                  <br>
                  Only it doesn't look like a fatal erorr. </div>
                <div dir="auto">It shouldn't need to find an aubitrc... </div>
                <div dir="auto"><br>
                </div>
                <div dir="auto"><br>
                  <div class="gmail_quote" dir="auto">
                    <div dir="ltr" class="gmail_attr">On Fri, 14 Jul
                      2023, 02:09 Michael Pope, &lt;<a
                        href="mailto:[email protected]"
                        target="_blank" rel="noreferrer"
                        moz-do-not-send="true"
                        class="moz-txt-link-freetext">[email protected]</a>&gt;
                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div>
                        <p>Thanks Mike,</p>
                        <p>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.<br>
                        </p>
                        <p><br>
                                - Commands<br>
                                  : cd ~/src/aubit/1.6.1/aubit4glsrc<br>
                                  : ./configure<br>
                                <br>
                                - Error<br>
                                  : checking what to autodetect...
                          everything...<br>
                                  : checking install root
                          'prefix=/opt/aubit4gl'... 2here<br>
                                  : No (using /home/map7/aubit4gl
                          instead)<br>
                                  : checking install location for global
                          aubitrc - /etc/opt/aubit4gl... no<br>
                                  : checking install location for global
                          aubitrc - /home/map7/.aubit4gl... no<br>
                                  : configure: error: Failed to find
                          location for aubitrc configuration file<br>
                          <br>
                                - Config file<br>
                                  I have a config file in
                          /home/map7/.aubit4gl/aubitrc<br>
                          <br>
                        </p>
                        <div>
                          <div dir="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="cite">
                          <div dir="ltr">There'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>
                                static int inited = 0;<br>
                                if (inited)<br>
                                  return;<br>
                                inited = 1;<br>
                              #ifdef DEBUG<br>
                                A4GL_debug ("init_stddbscr -
                              form_line");<br>
                              #endif<br>
                                std_dbscr.mode = 0;<br>
                                std_dbscr.colour = 0;<br>
                                std_dbscr.border = 0;<br>
                                std_dbscr.inpattr = 0;<br>
                                std_dbscr.dispattr = 0;<br>
                                std_dbscr.nextkey = A4GLKEY_F (3);<br>
                                std_dbscr.prevkey = A4GLKEY_F (4);<br>
                              <b>  std_dbscr.acckey = 27;</b><br>
                                std_dbscr.helpkey = 23;<br>
                            </div>
                            <div><br>
                            </div>
                            <div><br>
                            </div>
                            <div>Replace that with something like : </div>
                            <div><br>
                              <b>  std_dbscr.acckey = A4GLKEY_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="gmail_quote">
                            <div dir="ltr" class="gmail_attr">On Wed, 12
                              Jul 2023 at 07:12, Michael Pope &lt;<a
                                href="mailto:[email protected]"
                                rel="noreferrer noreferrer"
                                target="_blank" moz-do-not-send="true"
                                class="moz-txt-link-freetext">[email protected]</a>&gt;
                              wrote:<br>
                            </div>
                            <blockquote class="gmail_quote"
                              style="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'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't want <br>
                              to do this on the new system for obvious
                              reasons, I also don'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 'accept key' to F11 instead of me
                              editing every file and <br>
                              entering in the following;<br>
                              <br>
                                   OPTIONS<br>
                                   accept key F11<br>
                              <br>
                              <br>
                              from<br>
                              <br>
                              Michael<br>
                              <br>
                              <br>
                              <br>
_______________________________________________<br>
                              Aubit4gl-discuss mailing list<br>
                              <a
                                href="mailto:[email protected]"
                                rel="noreferrer noreferrer"
                                target="_blank" moz-do-not-send="true"
                                class="moz-txt-link-freetext">[email protected]</a><br>
                              <a
                                href="https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss"
                                rel="noreferrer noreferrer noreferrer"
                                target="_blank" moz-do-not-send="true"
                                class="moz-txt-link-freetext">https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss</a><br>
                            </blockquote>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>

--------------W0SmHTHzMDk83dD0ls1YG0kb--


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


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

--===============8399951040450109950==--