I use fansh frequently but there is one thing you could improve: the arrow keys don't work. You see the output when I press up-arrow-key:
xan@gerret:~$ fansh
Fantom Shell v1.0.62 ('?' for help)
fansh> ^[[A
In python -i it works. Can you mark as bug and fix in the next release?
Thanks in advance, Xan.
PS: I use ubuntu 11.04
SlimerDudeWed 7 Mar 2012
^[[A is the standard escape keyboard sequence for the up arrow ( e.g. see ) - it plagues unix terminals. You usually just need to set something in your .bash script or similar, but I'm not the person to know what it is.
P.S. Pah, Ububtu 10 is far superior! :p
andyWed 7 Mar 2012
You usually just need to set something in your .bash script or similar
If that's something we could just tweak in the launcher scripts - that would be awesome - if anyone knows - please chime in!
It looks like jline2 is pure Java and doesn't use any JNI or native code? Is that true? If so then we should be able to figure out whatever tricks they use and incorporate that into Fantom runtime.
alex_panchenkoWed 7 Mar 2012
It's not. They still use native libraries and extract them automatically.
XanWed 7 Mar 2012
So, is there any technical limitation? Why others languages could do that?
brianWed 7 Mar 2012
So, is there any technical limitation? Why others languages could do that?
Its a JVM problem. And its a Unix problem (it works on Wnidows). JVM languages that do provide it have to ship native code.
This would be a nice project for a contributor to figure out absolute minimum required new code which would give us clean up arrow support (ideally without native code).
XanThu 8 Mar 2012
If you say as double intention, I don't have tech skill to do that. Perhaps somebody else...
It's a pain we have this error of arrow keys. It improve the usability very much.
Xan Wed 7 Mar 2012
Hi,
I use fansh frequently but there is one thing you could improve: the arrow keys don't work. You see the output when I press up-arrow-key:
In python -i it works. Can you mark as bug and fix in the next release?
Thanks in advance, Xan.
PS: I use ubuntu 11.04
SlimerDude Wed 7 Mar 2012
^[[A
is the standard escape keyboard sequence for the up arrow ( e.g. see ) - it plagues unix terminals. You usually just need to set something in your .bash script or similar, but I'm not the person to know what it is.P.S. Pah, Ububtu 10 is far superior! :p
andy Wed 7 Mar 2012
If that's something we could just tweak in the launcher scripts - that would be awesome - if anyone knows - please chime in!
alex_panchenko Wed 7 Mar 2012
https://github.com/jline/jline2, unfortunately it can't be done in launcher scripts.
brian Wed 7 Mar 2012
It looks like jline2 is pure Java and doesn't use any JNI or native code? Is that true? If so then we should be able to figure out whatever tricks they use and incorporate that into Fantom runtime.
alex_panchenko Wed 7 Mar 2012
It's not. They still use native libraries and extract them automatically.
Xan Wed 7 Mar 2012
So, is there any technical limitation? Why others languages could do that?
brian Wed 7 Mar 2012
Its a JVM problem. And its a Unix problem (it works on Wnidows). JVM languages that do provide it have to ship native code.
This would be a nice project for a contributor to figure out absolute minimum required new code which would give us clean up arrow support (ideally without native code).
Xan Thu 8 Mar 2012
If you say as double intention, I don't have tech skill to do that. Perhaps somebody else...
It's a pain we have this error of arrow keys. It improve the usability very much.
Xan.
alex_panchenko Thu 8 Mar 2012
Fantom shell with history and highlighting ?