I am running Maxima from the terminal, and there are some things that annoy me a little bit. For example, if I want to move left or right, instead of doing that, the terminal prints some weird combination of letters, for example ^[[C (when I press arrow right), ^[[D (left), ^[[A (up) and ^[[B (down).

Is there a way that arrows work as expected? Is it possible to make the terminal seem more like an editor, like TextWrangler?


If you are running the default terminal program that shipped with your Mac then the arrow keys should move you left and right on a line or (for the up and down keys) back and forth in the shell history.

When you first launch the shell and before you run your program does UP and DOWN scroll through history? If you type anything on the command line (and without pressing ENTER) does LEFT move you back over what you typed?

It may be that (whatever "Maxima" is) your program has different input methods and changes that of the default Mac O/S X shell.

| improve this answer | |
  • Yes, normally it does up and down and left and right correctly, but with maxima it doesn't...do you know how to change the input methods? – nbro May 21 '15 at 13:17
  • Then it is likely that Maxima is the culprit and you might need to take that up on a board that specifically supports that application. – Steve Chambers May 21 '15 at 13:36
  • Extremely minor nitpick: No remotely recent OS that I know of uses a slash in OS. OS X certainly doesn't. (: – SilverWolf - Reinstate Monica Feb 27 '18 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .