bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] A suggestion concerning the readline library


From: Thomas Baruchel
Subject: [Bug-apl] A suggestion concerning the readline library
Date: Thu, 13 Feb 2014 17:18:38 +0100

Hi, first of all, I am a new APL user; I wish to learn APL mostly with GNU APL 
(I installed NGN + nodejs as well as Dyalog APL on my raspberry however).
Since I have been coding in several other languages for many years, I would be 
happy to help if I can.

First of all, I started a new blog: http://apl-adventures.tumblr.com/ with all 
my experiments.

Please, could you have a look at my second "trick" on the following post: 
http://apl-adventures.tumblr.com/post/76529518369/some-tricks-for-using-apl-under-linux

In two words, I tried to launch GNu APL from rlwrap. It can sound weird since 
GNU APL has its own readline support, but I
found something very useful to me. rlwrap uses the readline library with a 
custom function allowing to launch an editor
from the readline library at any time for a one-line shot. (you hit 
Ctrl-something, you get your EDITOR (environment
variable) launched, Vim, emacs or whatever, you finish editing your line, you 
save, you leave, and you have your line
interpreted).

Since an APL line is something more complicated than a line in other languages 
(unicode characters, etc.), I think it could
be useful to do the same in GNU APL: define a special readline function (the 
user can decide to use it or not from his/her
own ~/.inpurtc file) and launch the EDITOR from the REPL.

I had a look at the GNU readline manual and found it should be quite easy to do 
it.

What do you think of the idea?

Regards,

-- 
Thomas Baruchel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]