Question

Does the mira command have a shell-like history mechanism for commands typed at the terminal? I'm constantly hitting up-arrow to correct a minor typo, but it doesn't work. I'm using Miranda 2.044 for Mac OS X.

No correct solution

OTHER TIPS

Unfortunately it does not seem so.

You can use $$ as shorthand for the last expression evaluated however, and !! for the last shell command.

See: https://www.cs.kent.ac.uk/people/staff/dat/miranda/manual/5.html

Try this Python 2 oneliner, which redirects standard input to Mira through a shell:

python -c "import readline,subprocess as s;p=s.Popen('mira',shell=True,stdin=s.PIPE);[p.stdin.write(raw_input()+'\n') for _ in iter(int,1)]"

It also allows you to use backspace to correct typos.

Alternatively, try the rlwrap utility:

rlwrap mira
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top