[Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread David Lamkins
As much as I like gnu-apl-mode and aplwrap (I use both on a daily basis), I felt like there ought to be a more lightweight approach to getting APL characters into GNU APL. Today I wrote `akt`, the APL Keyboard Translator. https://github.com/TieDyedDevil/akt This small C program simply reads stdi

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread Elias Mårtenson
This is a neat idea, and something like this should be integrated in GNU APL itself, I think. However, making the assumption that Alt causes esc-prefixing is not an ideal approach. May I suggest that you take a look a the features that Curses offers to do this in a terminal-independent manner? Al

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread David B. Lamkins
Thanks, Elias. I was inspired by what I saw coming out of `showkey`, so I looked at the source and realized that the foundation was very simple. The only really tricky part was distinguishing between the ANSI CSI (a two-character prefix of all ANSI cursor and function keys) and the APL `←` which i

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread Elias Mårtenson
If you have never seen anything else, then I must assume that you haven't looked hard enough. :-) In fact, the usual way was to simply set the high bit to 1 to indicate Alt. Emacs implemented a workaround for terminals that did not support this (the Esc-prefix) and many terminal emulators have ado

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread David B. Lamkins
Interesting. I knew about the high-bit controls, but honestly can't remember the last time I saw a system that used them. Aside from xterm (given appropriate configuration), are high-bit controls used on any of your available platforms? On Thu, 2014-10-23 at 14:09 +0800, Elias Mårtenson wrote: > I

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread Elias Mårtenson
I have no idea. Probably not. :-) The point, however, is that if there is a standard way of doing it, that should be used. And I believe there is a most standard way (or am I wrong? I might mis-remember). Regards, Elias On 23 October 2014 14:24, David B. Lamkins wrote: > Interesting. I knew abo

Re: [Bug-apl] Another option for APL keyboard mapping

2014-10-22 Thread David B. Lamkins
Fair enough. I'll put high-bit controls on the TODO list along with alternate prefixes. On Thu, 2014-10-23 at 14:26 +0800, Elias Mårtenson wrote: > I have no idea. Probably not. :-) The point, however, is that if there > is a standard way of doing it, that should be used. And I believe > there is