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.

没有正确的解决方案

其他提示

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top