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!
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)
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)
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!