I run Scheme either as: rlwrap scheme, option which let's me use up/down left/right arrows, but that disables tab. Or as scheme option that let's me indent commands with tab, but disables the arrows.

I want both to be able to type things like:

(* (+ 3 4)

. (+ 4 6)

. (+ 55 55)

. )

without typing empty spaces. AND to move to previous command or back and forth with arrows. How can I configure it?

  • You might find more scheme users at stackoverflow – Jeff Schaller Sep 3 '16 at 20:56
  • 1
    Not sure if this is what you want, but you can enter a tab char to readline using the literal-next prefix, control-V tab. (see man stty for lnext). – meuh Sep 4 '16 at 10:06

I doubt that you'll find a line-based command line interface that caters for indentation. Line editors are primarily designed to handle line-by-line input, for which indentation is not a concern.

You can get a more comfortable interface by running MIT Scheme in Emacs. From emacs, type M-x run-scheme RET. Then you benefit from all of Emacs's editing capabilities and configurability.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.