Re: redefining SBCL prompts



On May 30, 3:07 pm, "Mike G." <michael.graf...@xxxxxxxxx> wrote:

Can someone please post a few lines to show me the proper way to
redefine the REPL and DEBUG prompts in SBCL? Static strings are fine
for my use. Thank you.

You can redefine the REPL prompt by setting the variable SB-INT:*REPL-
PROMPT-FUNCTION* (provided you're using SBCL directly, instead of
SLIME or something, which evidently does its own prompt handling). You
want to set it to a function of a stream variable that will send the
desired prompt string to that stream. For example:

(setf sb-int:*repl-prompt-function*
(lambda (stream)
(format stream "~&Foo> ")))

I don't know how to change the debug prompt, though.

Cheers,
Pillsy

.



Relevant Pages

  • Re: CFFI and SLIME
    ... The steps with SLIME are: ... as the prompt. ... succeeds then SLIME will show you ... If you don't want to change path in SLIME ...
    (comp.lang.lisp)
  • Re: Starting up Slime
    ... mb> When I enter M-x slime, the prompt comes up, but weird things happen ... mb> like if the pormpt is at the top, after I enter something the buffer ... mb> scrolls so that the prompt is at the bottom. ... More information about SBCL is available at. ...
    (comp.lang.lisp)
  • Re: idiomatic Lisp style
    ...  Check the INITIALLY clause. ... I'm using clisp with slime. ... It still doesn't prompt ... Use *QUERY-IO* to dialog with the user! ...
    (comp.lang.lisp)