Re: [Bug-apl] 'include' directive?

2017-02-04 Thread enztec
solved - )copy does it - but you can't have )off in the file ;) On Sat, 4 Feb 2017 16:08:06 -0700 enz...@gmx.com wrote: > Is there some kind of 'include' directive enabled for scripting or an apl > programming method to accomplish it? > > like a )copy but in the script > > fns_group1.inc

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread enztec
i think the easiest way to work with mysql and curl will be to load the libmysql etc and work with the libs functions? (same with libcurl?) and call from apl? On Sat, 4 Feb 2017 10:17:56 -0700 enz...@gmx.com wrote: > > can you post some of the code you used to do it? > > would be much appr

[Bug-apl] 'include' directive?

2017-02-04 Thread enztec
Is there some kind of 'include' directive enabled for scripting or an apl programming method to accomplish it? like a )copy but in the script fns_group1.inc ⍝ grouping of similarefns ∇ fns1 ∇ ∇ fn2 ∇ #! /usr/local/bin/apl --script -- )include fns_group1.inc fns1 fns2 )off

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread enztec
very complicated messing with LineIndex.cc with allocated_height - 1 and in LineIndex.hh messing with set_cursor got it to stay at the top but still input scrolled up one line and input stayed on 'same line' - instead of a true ^Mas in the xterm but with the script -- fixed i

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread Juergen Sauermann
On 02/04/2017 06:25 PM, enz...@gmx.com wrote: the fact that it is an external program is not important - it can a line of 100 a up arrow gives erroreous line to edit this was the reason you said that you moved the cursor to the end of the page - but it doesn't work - I have said other th

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread Juergen Sauermann
Hi, yes. Every line Input starts at LineInput::get_terminal_line() You can generate the Doxygen documentation to generate call graphs etc to browse through the code. The cursor is most likely positioned in LineInput::

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread enztec
can you give me a specific thing in the source to look at so that 'enter' does not go to the end of page ? we went over allocate_height and it didn't seem to be the place --- cut and pasted the following from your email "aaE

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread Juergen Sauermann
Hi, (only shows properly if your email client has the same ⎕PW) :    ^   "aaEND bbb"

Re: [Bug-apl] strange behavior of --

2017-02-04 Thread enztec
yes of course :) BUILDTAG: - Project:GNU APL Version / SVN: 1.6 / 877M Build Date: 2017-02-04 16:55:46 UTC Build OS: Linux 2.6.32.71 i686 config.status: unknown configure options Archive SVN: 872 /usr/src/apl/apl-877 > l /usr/local/bin/apl -r

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread enztec
the fact that it is an external program is not important - it can a line of 100 a up arrow gives erroreous line to edit this was the reason you said that you moved the cursor to the end of the page - but it doesn't work - I have said other things in my email that you haven't responded to

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread enztec
can you post some of the code you used to do it? would be much appreciated On Sat, 4 Feb 2017 23:17:02 +0800 Elias Mårtenson wrote: > It's actually not very complicated. And I managed to get it working with > only a bit of support from Jürgen. If he doesn't have time to explain > things, I'll

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread Juergen Sauermann
Hi, of course, if you start an external program (via )HOST) then you cannot expect that the editing and/or input functions of that external program still work as if the program was started from a shell. What I meant by multi-line input is input

Re: [Bug-apl] strange behavior of --

2017-02-04 Thread enztec
Hi the -- is strill required on the cliscript -- arg1 arg2 for 877 i don't see what was really changed script is #! /usr/local/bin/apl --script -- ⊃⎕ARG ⍝ show command line options )off script arg1 arg2 unknown option 'arg1' usage: apl [options] options: this use to wo

Re: [Bug-apl] location of cursor on new apl session

2017-02-04 Thread enztec
On Sat, 4 Feb 2017 14:12:08 +0100 Juergen Sauermann wrote: > Hi, > > as I said, the cursor is not moved down by the clear screen but by the > interpreter <-- this is what i have been saying for days and should > not happen > requesting input. If you place your cursor anywhere on the sc

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread Juergen Sauermann
Hi Peter, currently the main source of information is Dirk Laurie's info libapl I have commented the new functions in libapl.h; they are not (yet) described in info libapl. /// Jürgen On 02/04/2017 04:14 PM, Peter

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread Elias Mårtenson
It's actually not very complicated. And I managed to get it working with only a bit of support from Jürgen. If he doesn't have time to explain things, I'll help out too. Regards, Elias On 4 Feb 2017 11:15 PM, "Peter Teeson" wrote: > Hi Jürgen: > Other than the source code is there updated docn?

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread Peter Teeson
Hi Jürgen: Other than the source code is there updated docn? In my case I have been waiting for this for a very long time. respect….. Peter > On Feb 4, 2017, at 8:38 AM, Juergen Sauermann > wrote: > Coming back to your other problems, if you do not like the terminal I/O of > GNU APL, then > y

Re: [Bug-apl] using c libs in apl?

2017-02-04 Thread Juergen Sauermann
Hi, yes there is: native functions. You can load shared libraries and ⎕FX functions in them to be called from APL code. The src/native directory contains a few templates that you can use as a starting point and to call your favourite library fro

Re: [Bug-apl] strange behavior of --

2017-02-04 Thread Juergen Sauermann
Hi, yes, most of this trouble is caused by how execve() works, which is quite different on different platforms. And it happens before apl is being called so I cant do much about it. Sometimes it helps to start apl with -f so that th

Re: [Bug-apl] strange behavior of --

2017-02-04 Thread Alexey Veretennikov
Hi Juergen, Something is apparently strange on OSX(?). With the latest version when I run the same script below I get the silent input without echoing, no output like below, and I have to blindly type )off manually to exit interpreter. Juergen Sauermann writes: > Hi Alexey, > > I have changed

Re: [Bug-apl] Build of svn r876 failed on OSX

2017-02-04 Thread Alexey Veretennikov
Thanks, this is solved for me, it looks like I was using gcc5 as well So adding CXX=g++-mp-4.9 CXXFLAGS="-std=c++98" before configure solved the build problem. Juergen Sauermann writes: > Hi Alexey, > > looks like you are building for C++ version 2011 where man g++ says: > "Support is incomplet

Re: [Bug-apl] Build of svn r876 failed on OSX

2017-02-04 Thread Juergen Sauermann
Hi Alexey, looks like you are building for C++ version 2011 where man g++ says: "Support is incomplete and experimental." I suppose you can do something like:    CXXFLAGS="-std=c++98" ./configure ... to force an ol

Re: [Bug-apl] strange behavior of --

2017-02-04 Thread Juergen Sauermann
Hi Alexey, I have changed the handling of command line options, SVN 877. It now works like this: script: #!/usr/local/bin/apl --script -- )copy 5 FILE_IO FIO∆errno 8⎕CR ⎕ARG )off

Re: [Bug-apl] (no subject)

2017-02-04 Thread Alexey Veretennikov
Hi, Just to add something to this article: - Dyalog is free for non-commercial use - ISO 13751 could be bought from official site for like 60$ (I bought it for instance) - In order to create APL keyboard layout on OSX one could use excellent program Ukelele. I did my layout based on Dvorak layout