Added Prolog console history search (with page up and page down).