Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
    
I think this question explains it: stackoverflow.com/questions/1911861/… – Alan Shutko Oct 23 '12 at 16:14
    
Wikipedia and this Kermit page discuss the history of ANSI establishing “escape sequences” for non-ASCII keys (including “ESC [ D” for left arrow) and cursor functions, and the DEC VT100 being an early adopter of the standard. – Scott Oct 23 '12 at 20:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.