11

I have been using MIT-Scheme for sometime now, and it works great. However, in the REPL mode, I really miss having a history of all the commands that I typed into it. It's very frustrating to retype a piece of code in case of a small typographical error.

How can I enable the history mode? (If such a thing exists)

Flux
  • 9,805
  • 5
  • 46
  • 92
Gooner
  • 1,380
  • 2
  • 14
  • 25

2 Answers2

7

The program rlwrap adds command history and covenient editing to almost all command line tools. http://utopia.knoware.nl/~hlub/uck/rlwrap/

Updated URL[11/2016]: https://github.com/hanslub42/rlwrap

Trevor Abell
  • 732
  • 2
  • 9
  • 15
Sven
  • 496
  • 4
  • 9
1

Edwin, the MIT/GNU Scheme text editor, provides a special mechanism for interacting with Scheme read-eval-print loops: REPL buffers.

Each REPL buffer maintains a history of the expressions that were typed into it. Several commands allow you to access the contents of this history. The command M-p moves backwards through the history, inserting previously evaluated expressions at point. Likewise, M-n moves forward through the history. The commands C-c C-r and C-c C-s search backward and forward through the history for a particular string.

http://web.mit.edu/scheme_v9.0.1/doc/mit-scheme-user/Edwin-REPL-Mode.html

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501