2

These work fine when typing in the shell itself (no child processes, just the prompt) - I can edit the input line before submitting it as command input to the shell. But when I am running a program, say Standard ML interpreter (SML New Jersey) in the same terminal, I cannot move the caret back on my line to edit out stuff, instead it adds the sequence ^[[D to the end of output. Is it because the program simply does not interpret my arrow keys the way I want it to? Perhaps it doesn't even support such editing mode?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.