First off, there's multiple ways you might have installed J, and you
seem to be using an older version. You might try upgrading to a
current version.
That said, here's what I looked at, and if you want to try debugging
your old version, these steps might tell you what went wrong on your
system:
When I looked at a linux system with J installed, I see that it's
using libreadline:
$ ldd /usr/bin/ijconsole
linux-vdso.so.1 => (0x00007fff11fc8000)
libreadline.so.6 => /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007fd332fcd000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fd332dc9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd332a03000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fd3327da000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd33321c000)
And when I read for example man 3 readline, it claims:
Readline is customized by putting commands in an initialization
file (the inputrc file). The
name of this file is taken from the value of the INPUTRC
environment variable. If that vari‐
able is unset, the default is ~/.
And when I look at ijconsole's behavior when input is a terminal, it
tells me that j is looking at /etc/inputrc:
$ strace ijconsole 2>&1 | grep -i inputrc
stat("/home/vagrant/.inputrc", 0x7ffd40112e30) = -1 ENOENT (No such
file or directory)
stat("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=1721, ...}) = 0
open("/etc/inputrc", O_RDONLY) = 4
read(4, "# /etc/inputrc - global inputrc "..., 1721) = 1721
(Note: should exit this with control-D.)
Since your copy of J is not doing this, something must be wrong with
your system. But since I do not have access to your system, I cannot
tell you what has gone wrong there.
I'll suggest you upgrade to a current version of J from
jsoftware.com's website, but there might be other ways of fixing this
particular problem.
Thanks,
--
Raul
On Thu, Sep 17, 2015 at 4:46 PM, Martin Kreuzer <[email protected]> wrote:
> Hi all -
>
> Linux newbie to be assumed.
>
> Apologies if that's been discussed before ...
>
> On my Debian box in JConsole v7.01a (32-bit)
> when I press the [Delete] or [Insert] key on my keyboard
> I get a tilde [~] as output and
> - no character deletion
> - nor insert/overwrite toggling
> takes place.
>
> I found (under /etc/) a file called 'inputrc' which
> contains these lines:
> ...
> "\e[3~": delete-char
> "\e[2~": quoted-insert
> ...
> which according to what I've read up should do the job.
>
> Could somebody pse give some directions how to solve this..?
>
> btw, same version works fine under XP and W7 ...
>
> Regards
> -M
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm