Standard ML: mosml or smlnj -> Arrow keys doesnt work

Hello,

I have a problem with my interpreter for sml. I tried mosml (moscowml) and smlnj. When I want to use my last command (history) I try it with the arrow top key. But then terminal says: “^A”. Even when I try to correct my command with arrow left ( “^D”) and arrow right ("^C"). So I cant move my curser…

It is a normal terminal application. (mosml on windows: arrow keys work)

Does everybody know what to do?
Thank you very much!

greets
k3jj3k


I use OpenSuse 13.1 x64

On 2014-11-04 18:16, k3jj3k wrote:
>
> Hello,
>
> I have a problem with my interpreter for sml. I tried mosml (moscowml)
> and smlnj. When I want to use my last command (history) I try it with
> the arrow top key. But then terminal says: “^A”. Even when I try to
> correct my command with arrow left ( “^D”) and arrow right ("^C").
> So I cant move my curser…
>
> It is a normal terminal application. (mosml on windows: arrow keys work)

Traditional keys perhaps. ctrl-a is left-end, ^g is right… I don’t remember the combinations.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Thank you for your reply!
But unfortuanately not… ctrl + a ist “^A”
I tried every combination with crtl + and alt +, but nothin works…
Another Idea?

On 2014-11-05 09:56, k3jj3k wrote:
>
> Thank you for your reply!
> But unfortuanately not… ctrl + a ist “^A”
> I tried every combination with crtl + and alt +, but nothin works…
> Another Idea?

No, sorry, no more ideas. You will have to read the documentation of
your software.
Classic UNIX command used control keys without cursor keys because they
did not exist on available terminals.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Mmh… I cant find anything in the doc. (http://www.smlnj.org/doc/)

Classic UNIX command used control keys without cursor keys because they
did not exist on available terminals.

You mean than it would never work? I ask me why because on windows it works…
Maybe another one have an great idea, but thank you very much!

greets
k3jj3k

For everyone who has the same problem. Here is my solution: I found the package rlwrap. It “runs the specified command, intercepting user input in order to provide readline’s line editing, persistent history and completion.” http://linux.die.net/man/1/rlwrap

If you run “rlwrap moml” or “rlwrap sml” it works!

On 2014-11-17 15:26, k3jj3k wrote:
>
> For everyone who has the same problem. Here is my solution: I found the

Thanks for posting it back :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)