I have recently installed ciao-prolog on my mac os x and my ubuntu machines. I just want to know if command line history a la UNIX shells (e.g. CTRL-R and up cursor) is implemented at all in ciaosh since they don't seem to work in both of my machines.
We do not include command line history in the shell itself since this is provided by the gui interface (e.g., emacs) and is easy to provide that externally. For example, you can run:
emacs -f ciao
and you will get a top level in a window with full command line history (CTRL and up cursor, CTRL and down cursor, etc.), plus all of the Ciao emacs mode goodies, if you want to use them (e.g., the source level debugger, direct access to the documenter, editing, etc.).
If you are in a terminal and you do not want to open a separate emacs window you can also do:
emacs -nw -f ciao
Hope this helps.
On 31/08/2011, at 14:48, ciao(a)clip.dia.fi.upm.es wrote:
I have recently installed ciao-prolog on my mac os x and my ubuntu machines. I just want to know if command line history a la UNIX shells (e.g. CTRL-R and up cursor) is implemented at all in ciaosh since they don't seem to work in both of my machines.
We do not include command line history in the shell itself since this is provided by the gui interface (e.g., emacs) and is easy to provide that externally. For example, you can run:
emacs -f ciao
and you will get a top level in a window with full command line history (CTRL and up cursor, CTRL and down cursor, etc.), plus all of the Ciao emacs mode goodies, if you want to use them (e.g., the source level debugger, direct access to the documenter, editing, etc.).
If you are in a terminal and you do not want to open a separate emacs window you can also do:
emacs -nw -f ciao
You can also try the "rlwrap" command (you may need to install it; it's based on GNU readline). On MacOS X, you can use MacPorts to install it.
Cheers,
Paulo
----------------------------------------------------------------- Paulo Jorge Lopes de Moura, PhD Assistant Professor Dep. of Computer Science, University of Beira Interior 6201-001 Covilhã, Portugal
Office 3.18 Ext. 3276 Phone: +351 275319891 Fax: +351 275319899 Email: mailto:pmoura(a)di.ubi.pt
Home page: http://www.di.ubi.pt/~pmoura Research: http://logtalk.org/ Blog: http://blog.logtalk.org/ -----------------------------------------------------------------