Results 1 to 7 of 7

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

  1. #1

    Question 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

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

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

    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)

  3. #3

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

    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?

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

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

    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)

  5. #5

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

    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

  6. #6

    Default Re: Standard ML: mosml or smlnj -> Arrow keys doesnt work [SOLVED]

    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!

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

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

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

    --
    Cheers / Saludos,

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •